Refreshing gallery - Why is this not working?


Can someone explain what I am doing wrong here?

The image is not showing in my gallery for this method:

This method works and the image does show in the gallery:

//Ignore the if block in both

please show us a Do it result

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

taifun reply

The image does show in the gallery in the companion, just not in the apk. (forgot to mention)

To add further: The picture for Image1 is a saved canvas image, so the file exists already in the device. I am jus trying to show that saved picture in the users gallery.

Thank you

Its odd because it works fine in the companion.

I have also tried using the component to image extension to save the image as a new file then refresh the file path. This did not work either.

sorry, I do not know why that happens…
you might want to display the result from the Gallery Refresh method in a label to find out, what is going on…

1 Like