Camera & timer & save

you have to use a new filename for each new image
Taifun

Please give an example of this section:
I take a 1: 1 photo with the camera
2: Save the photo to a directory
3: Take a photo again and add the previous photo to the directory “without deleting the previous photo”
Please also upload the image of the selected blocks so that I can understand them more
Thanks

yes, do it exactly as you explained here
and if you get stuck, then post a screenshot of your relevant blocks

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

This is all you need to do that:

blocks (35)

Thank you
But I tried several methods
I want the default file extension (app_inventor) not to be displayed with image details
I did it once and the changes were made right.
But with changes made to the default extension again (app_inventor_11111111.jpg)
Example: Save Image as Default Phone Image (11111111.jpg)
Add to saved image
Do you have a solution for this?
Thanks

I would use Taifun’s File Extension to do this:
https://puravidaapps.com/file.php

Use the Move or MoveAsync blocks, which will allow you to rename and move to another location if you want. Do this in the AfterPictureTaken event block.

3 Likes

Hi
While this topic is being suggested as the best solution for me, it is closing, but I have encountered the problem again to use the solution.
Can you send me a picture of the suggested solution?
1: take a photo
2: save in canvas1
3: save this pic in new directory
4: with tifunFile file save picture without deleting the previous image in this directory.

Thank you very much for the guidance and patience you took to read my issues and problems.
I wish you success

Thanks
I’ll try this method in the shortest time
:گل سرخ:

Please see this picture

Everything worked fine until I imported “set canvas - to backgrandimage” but didn’t save the image.
And when the image is saved with “save as” the image output is saved to the phone as follows …
.
.


I tried my best and moved the blocks and read the articles but didn’t notice.
Where do you think the problem is?
Thanks

for example :

if canvas1 <>"" then
canvas1 . backgrandimage = photo after picker
else
camera = true
end if

buttun1.click = take picker

for each item in canvas1
item . save to phonegallery

if item in gallery = **app_inventor_**544544780.jpg then
if show.contain ((item)) app_inventor) then
app_inventor_ = removeed
end if
end if
next

"picture in galery = ( / jpg ) "

{ canvas1.backgrandcolor= flie *pictore }

for example : with taifunFile , picture = /my directory / 544544780.jpg

Thank you

If you must make a copy of the file, having just renamed it (why do you need a copy?)
then use the copy method in the File extension…

I did not get you
As a beginner programmer I need visual understanding
You're a professional programmer, and this may be a little trivial for you
So I have to look for other sites to resolve this issue
I wish you success
:قلب آبی:

Do the tutorials to learn the basics, see the links in my previous answer

Taifun

Thankful
I studied and tested them all
I didn't think this would be so complicated
The only item stored on the phone is visible to the third party phone and deleting the app_inventor_ prefix is ​​stored in the image.
With TIMAI2 help I used the file taifunFile plugin but the output cannot be saved during storage or if app_inventor prefix is ​​added to the image again.
I haven't been able to fix this for 5 days now
I'm a little tired of this and feel very lonely in helping
Please let me know if you know of a site that solves some of my problems
Thank you

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

I removed all the blocks, removed and added them, and finally deleted them
I want to save it to a directory after taking pictures
Example: / MyPictures
Photos have the default prefix and delete the app_inventor_ prefix
And finally the photos can be displayed in the gallery
This…

I tried the suggested TIMI2 method but the images are displayed in the gallery below

!!!

very good! congratulations!
Taifun

Is there really nothing to solve this?

Try this: