[英]How can i get “All files access” or “Permanent and complete access to a folder” in android 11 (Scoped Storage) with b4a?
Any sample please请提供任何样品
Can all apps get "All files access"?所有应用程序都可以获得“所有文件访问权限”吗? (like apk files non-shared and out of play store?)
(比如 apk 文件非共享和游戏商店外?)
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? android 10 怎么样? should i use just
android:requestLegacyExternalStorage="true"
in manifest and its fine?`我应该在清单中只使用
android:requestLegacyExternalStorage="true"
吗?
For accessing all files in android 10, for a specific folder you can use ACTION_OPEN_DOCUMENT_TREE .要访问 android 10 中的所有文件,对于特定文件夹,您可以使用ACTION_OPEN_DOCUMENT_TREE 。
https://developer.android.com/reference/android/content/Intent.html#ACTION_OPEN_DOCUMENT_TREE https://developer.android.com/reference/android/content/Intent.html#ACTION_OPEN_DOCUMENT_TREE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.