-1

Any sample please

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

and after getting "All files access" or "access to a storage folder" can i use file addres like this

File.Combine(File.DirRootExternal,"mySelectedfolderOrAppFolder/subfolder/file.zip")

or

File.ListFiles()

and other File methods...?

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

Rasool g
  • 11
  • 1
  • 4

1 Answers1

0

For accessing all files in android 10, for a specific folder you can use ACTION_OPEN_DOCUMENT_TREE.

https://developer.android.com/reference/android/content/Intent.html#ACTION_OPEN_DOCUMENT_TREE