Problem saving photos for Android 11+

Hi,
I'm making an app that will allow me to take photos of an object on a rotating surface. Unfortunately, I have a newer phone and it only has internal storage. For me, this means that my photos are not saved to my phone or anywhere else. I've tried several versions, but I still don't know how to figure it out.

Does anyone have any ideas please on what code to use to save the photos I take to my phone?

Are you sure about that ?

Are you taking photos with an AppInventor app or with the device's camera app?

On +11, AppInventor will save photos to the ASD. Set image to a label to see the full path (image from the AfterPicture taken event)

You should be able to copy these to your shared DCIM folder using the File component.

Oh, and we have always had internal storage, just a poorly set descriptive name for external storage...

Yes, I couldn't find the photos anywhere even after restarting the phone.

I take photos using the AppInventor app.

In companion:

How do I get to that pop-up window you have there? I don't see the question mark there

When connected to the companion app, and after taking a photo, right click on the label and select Show Comment

or just look at your device screen where the label is displayed...

DefaultFileScope = Shared (in the Designer -> Settings):

I see this, but the photos on my phone don't. I only see them on my computer when I connect my phone via cable. But I need them in the gallery

Read again @Anke 's tip and set

Taifun

1 Like

Follow my instructions and use Taifun's TaifunTools extension and its RefreshGallery method.

2 Likes

I have downloaded TaifunTools, can you please advise me on how to proceed using blocks?

Add the GalleryRefresh block here

Taifun

1 Like

Is that what you mean?

Yes, but as far as I remember, the GalleryRefresh method requires an absolute path. So remove "file://" from the "image" path.

grafik

Like this?

grafik

Okay. And the last one should remain empty?

:white_check_mark:

It still doesn't work. Is there any way to change the storage so that it is saved somewhere other than the android folder?

Did you set
DefaultFileScope = Shared (in the Designer -> Settings)?