SAF: App Inventor implementation of Storage Access Framework

then it is uselss for me and other who r making online pdf app ,audio,video etc

This post was flagged by the community and is temporarily hidden.

first thing this not kodular block

use .OpenDocumentTree and make URI and use that uri

for downloading use ASD

This post was flagged by the community and is temporarily hidden.

can u share a demo aia

Yes, and you can’t access it either:

  • /storage/emulated/0 (the root dir of the external storage) and
  • /storage/emulated/0/Download

But you can access:


But why do you want to access restricted dirs?

:sweat_smile: can i tell you in pm ?

Yes, sure.

Please provide aia file

Sorry, but for what?


Read post and see example

It is very easy to use


Please try:

Label1.text was initially set to content://


okay i am trying it :grinning_face_with_smiling_eyes:

1 Like

it was working fine and it working in other app-specific dir too

thank you :blush:


In that case correct me if i am correct
if i have selected the android folder in access, then can i access

android/media/com.whatsapp/whatsapp/media/whatsapp document

Please confirm
in this block the sourceUri is the uri of the file which is required to be copies and targetParentUri is the uri of the folder in which the data is required to be copied

To learn how to build document URIs please check example 1.

1 Like

I am using an image picker to pick the image and save it in ASD

Problem which i am facing is which folder the user Should give access
If he select DCIM folder then he cannot handle the images which are received from whatsApp.
If user select Android folder to access whatsapp images then he cannot handle the images from DCIM
As such user cannot give access to full storage
What is way out for this problem

You can get access to multiple document trees.

1 Like