This inability to capture the name of a photo is a SERIOUS limitation in AI2. There is no Camera.SaveImageAs. Your photo, is saved using an arbitrary number.jpg image in the Downloads folder.
With a Canvas, you can . call Canvas.SaveAs
fileName
and assign a specific name. You can not do that with Camera.
To complicate matters, AI2 has no way to view the contents of a folder. The File component is a nice tool, but it does not provide anyway to list the contents of a folder to show
what files exist. Therefore you can not specifically use this control to delete a file unless the name of the file is saved somewhere within your app (or you remember the name).
So, you cannot use the File component to manipulate the photos you take with Camera, that is you can not retrieve them or delete them without using a file manipulation app or using the app on your device to view photos and view/delete from the images posted in that app.
.
With Canvas, you can find out the name of the file that is being saved if you grab it from a web page (Web.GotFile and filename will do that) but there appears to be no
way with stuff stored on your Android device using native AI2.
It might be possible to do find all the files in a folder using javascript.
Perhaps somone is aware of something I missed? Please post here. :)
Also, be aware, there are several bugs in the AI2 camera component. Please read about that here:
https://groups.google.com/forum/#!searchin/app-inventor-open-source-dev/camera/app-inventor-open-source-dev/jDu24R3584M/qwGobn6umNgJ
Regards,
Steve