I have only figured out how to take one picture and display it on screen, but I want to take multiple and display them. The "Camera.TakePicture" and "set Image.Picture to get image" combo will just set the image component to the new image and delete the old one. I assume Dynamic Components would be utilized here, as I would need to make a new image component with every picture taken, but I'm not entirely sure how it would work. I'm a beginner to complex app making like this so it has been hard to figure out.
Is this possible? Are there any other extensions I should use?
This might be a dumb question so please forgive me but how would I input the HTML code shown in the Metric Rat AI2 site? I've seen it before but I avoided it because I didn't understand how to implement it into App Inventor...
The thing I'm having trouble with now is: the TaifunFile code from the camera.aia example seems to save to shared folders (I don't know where this actually saves to on my device?) however the Image Grid HTML code pulls the images from ASD. Does anyone know of a way I could combine these two to utilize the same place?
This needed a bit of thought, but got to the bottom of it eventually.
All the changes to make this work are in the blocks.
I have not changed the content or location of the html file.
Tested with companion and compiled app on Android 13, Google Pixel 4a.
The compiled app will ask for some permissions on first run.
I have @ 500 full size camera images stored on my phone. This takes quite some time to load all of them. Photos taken in portrait may be rotated by 90 degrees when viewed in the image component, but they display correctly in the html.
Sorry, another question:
I have too many images in my Shared folders that it crashes the AI companion. I made a new folder called MitApp in my Internal Storage and this code successfully saves the camera images there:
However, I can't seem to pull the images from this folder using your code, and it gives the "there are no images in this folder" error message. Is there something I'm missing? I added the MitApp folder to the dirlist here:
I am using Android version 8.1.0. I'm not sure what you mean by compiled app? I just ran the picture taking/saving code using the AI companion, and it worked fine.
I changed the name in the dirlist but it still doesn't work. The folder is named MitApp in my files, but in the Taifun camera code I used "/mitapp" so I had assumed the case didn't matter. Here's a screenshot of where the folder is if it helps:
I haven't made the apk yet, I will try it!
As for the blocks, not sure what other blocks are relevant. I only used the code that TIMAI2 provided. I'll still screenshot it and send here: