List Documents folder with android 11

you modified the manifest and added "MANAGE_EXTERNAL_STORAGE" manually.. .
which results in your app not being accepted by Google Play anymore...
you should mention that next time in your first post...

did you use the AskForPermission method together with MANAGE_EXTERNAL_STORAGE?
also you might want to try one of the file extensions to get a list of the files of that directory...

Taifun

2 Likes

I'm sorry, but I don't understand, I showed my blocks.

1 Like

use the AskForPermission method from the Screen drawer together with the permission MANAGE_EXTERNAL_STORAGE during Screen Initialize

this should be used only by experienced users who know, what they are doing...

Taifun

2 Likes

I tried but permission denied

1 Like

@Anke showed an example in the Kodular community how to do it...


Taifun

3 Likes

Try this app on your Android 11+ (test) devices:

I didn't have to manually add this line to the Manifest as I created a small extension that automatically declared it there.

<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
1 Like

See also here (same app on Niotron):

1 Like

I tried without success, your app is not present in the app list and doesn't save text file

1 Like

What does that mean?

1 Like

I'm sorry, it is in the list, but with the note access denied to all files

1 Like

Did you do this:

1 Like

I did not last time, but I did now, your app runs well, file saved.
I am waiting to know how to do it

2 Likes
1 Like

Here the blocks for documents folder list. Thank you Anke !

It's better :+1:
maybe you have to update the tutorial

:question:

You added NOT to tinydb getvalue

The guide / tutorial is about "How to request and grant MANAGE_EXTERNAL_STORAGE permission" and it is not about not making this request every time the app is restarted. So if this permission is granted once, the app will have unrestricted access to all files, even if the app is restarted.

So once this permission has been granted there is no need to re-submit this request.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.