Android Question How can i get “All files access” or “Permanent and complete access to a folder” in android 10-11 (Scoped Storage)

rasul.g

Member
Any sample please

Can all apps get "All files access"? (like apk files non-shared and out of play store?)

for access a folder should i use "ACTION_OPEN_DOCUMENT_TREE" ?

and after getting "All files access" or "Access to a external storage folder" can i use file address like this
B4X:
File.Combine(File.DirRootExternal,"mySelectedfolderOrAppFolder/subfolder/file.zip")
SQL1.Initialize(File.DirRootExternal, "folder/backup.db")

or

B4X:
File.ListFiles()
File.Copy()

and other File methods...?

what about android 10 ? should i use just android:requestLegacyExternalStorage="true" in manifest and its fine?


please any help. I'm not familiar with Java codes and I don't have Android 11 emulator
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…