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 ?
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.