How to request and grant MANAGE_EXTERNAL_STORAGE permission

What about trying? But yes, you can write to / read from every file in all locations (of the external storage).

I'm still trying to change a file in /Download.
But I'm also looking at how to download it from the application, it will be easier

After that copy / move the file to /Download.

Dear Anke,
i've been stuck trying to make my app work on the new device, and gut stuck in the permission issue for a looong time,
you made me happy today!
Thank you

1 Like

In the pic of the blocks for manage external storage you have an item
set ActivityStart1 Action

What type of block is ActivityStarter

There seems to be another bug with the File component. Therfore my test APK from the first post, does no longer work on Android 13+ since the nb193 update (targetSdkVersion = 33).

So I rebuilt it with my MFile extension:

it works with me . can i get the project .aia file to just edit it to my application ???

Hi Anke, I'm using attached blocks on android 11 to get /Documents list, but no output on android 13, error 908 permission denied, what have I to do ?

1 Like

Read the description in post #1.

I don't understand, I can or I don't, how can I list the directory with your mfile ext ?

I solved setting file component default scope to SHARED

ineed aia file" manageExtStorage_SDK33.apk" apk work well on my android "12 api 31" i try to do same as file but not read external storage

me too need aia file

1 Like

CREATE FILE AS PER MRS ANKE METHOD .aia (63.9 KB)
my aia file attached thanks mrs Anke

Hello,
I have tried AS IS the app CREATE FILE AS PER MRS ANKE METHOD by KHALED_MOSTAFA on my Android 14 phone (Realme GT 6). It works fine, but when I copy the text file, I get READ_EXTERNAL_STORAGE permission denied error, but the file is eventually copied successfully. As natural, I granted any read/write file permission to this app in its operating system settings.
In am really interested in finding a solution to such issue, as I have several old apps that are no longer working on new Android version and that I need to make running again.
Any help will be very appreciated.

Did you use the File component? Some methods mistakenly request READ permission. Try to use one of the File extensions from @Taifun or @vknow360 instead.

Hi Anke, thank you for your prompt feedback.
The app already uses Taifun file extension to copy the file, it is there indeed I get the error:

Per your suggestion, is it possible the error comes from MakeFullPath or Exists method of File component (used in the Copied event)?

Try the TaifunFile.Exists method instead:

Can you give little explanation about what you did here with these blocks?