SAF: App Inventor implementation of Storage Access Framework

I tried it on a device of one of my children (who sadly uses WhatsApp :sob:) and it is true that it is not possible to access these (specific) WhatsApp folders (files in these folders). Obviously, this is only possible for the WhatsApp app.

1 Like

Seems doubtful but worthy a try.

With SAF it is possible. :grin:

4 Likes

Yeah right, it should work with SAF.
Iā€™ll check it out quickly.

1 Like

Yes, I was able to access these folders via SAF, list the files there and delete a file.
Tested on Android 10.

2 Likes

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

I Tried many times but itā€™s not work

Why the storage link should start from content://android.provider
I am unable to get this type of link with my file manager only it provides
/storage/emulated/0/Download/Recycler View%20Extension.aix
Unable to access link storage like content://android.provider
Please anyone help

Ever worked with Content URIs?

After using OpenDocumentTree or OpenSingleDocument, how to quit/stop this action and get back to companion? when i press BACK button, the companion will just quitā€¦

in my app when i press back button of my phone app getting crash

1 Like

yes. i think itā€™s a null pointer exception

1 Like

Fixed :smile:

Two issues has been fixed:

  • Fixed issue in write methods
  • Fixed null pointer exception when SAF picker was cancelled by user
6 Likes

Where is ā€œbuiltUriā€ component in this extension ?

Thatā€™s not a method and is procedure.
Though if you will look at blocks then you will find related methods.

1 Like

ChangeLog Version 1.1

New Blocks
image
Changes

  • Removed category param from OpenSingleDocument method
  • GotCopyResult and GotMoveResult now return resulting/target documentā€™s uri

Bug Fixes

  • Fixed issue in write methods
  • Fixed null pointer exception when SAF picker was cancelled by user
    Reported by @Kevinkun
8 Likes

Hiii can any one tell me that which component i have to use to open pdf file from storage ā€¦i am confused that which component have to use

How to get 1 Folder permission in android 11? I need permission of

/storage/emulated/0/Android/data/com.otherapp.per/files

Can you tell me how you get access of other app private folder? I need to learn it Badly. My app is not working in Android 11 for this

Did you check the examples given above?
Also, show what you have tried.

11 posts were merged into an existing topic: Specific folder permission Android 11