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:
/storage/emulated/0/Downloads

2 Likes

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?

3 Likes

Read post and see example

It is very easy to use

2 Likes

Please try:

Label1.text was initially set to content://com.android.externalstorage.documents/tree/primary%3AAndroid.

3 Likes

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:

2 Likes

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

component_method
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

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