Saving Canvas to Internal Storage

To be able to see an image in the Gallery, it must be stored in shared storage

Just set default file scope in the project properties to Legacy and use the Canvas.SaveAs method together with path /Download/canvas.jpg

Taifun
PS: yes, the example needs an update

Thanks Taifun, I have updated the app as per your recommendations. On saving the canvas, the gallery still does not refresh on its own, I have to restart the phone for the jpg to appear in the download folder. This is ok for one off instance but is not practical for an app which outputs jpg files. Could I request a review of the gallery refresh method on AI2 ?

Using the FilePicker component should always find it ?

Try this one:
refresh_Anke.aia (11.4 KB)

Thanks Anke, the gallery now refreshes when I use the AI Companion. When I compile and use the app directly on the phone, I get the attached runtime error. Could you please suggest the solution for this.

Rename the fileName to "myImage1.jpg" and try again without testing with Companion beforehand.

Thanks Anke, this works !

Btw, ...

grafik

also used in my refresh_Anke.aia, so as @Taifun said...

Indeed. :wink: