3. Let’s code the second part of our app. We want that after taking the picture, every picture is retrieved from the storage in our phone and showed in the app. First, we have to add the block that refers to the picture taken. Click on Camera and add:
This block of code refers to the picture just taken by the Camera, it’s the code used to find the path to that image in your phone.
4. Now, for every image taken by the Camera, we want the TinyDB to store the images and name each new photo as “picture”. Click on TinyDB and add:
5. After “tag”, let’s add how we want to name each photo. As the value we are going to insert is a string, go to Text and add an empty block ” “. Then, change the text to “Picture”.
6. We have to specify what value we want to store, that is the picture just taken and saved in our phone. So, we need to call that picture by referring to the “Image” we have in the “when Camera1.AfterPicture” block. Image is therefore a variable. Click on the “Variables” section and add the following block:
get (select Image)