简体   繁体   English

如何使用 b4a 在 android 11(范围存储)中获得“所有文件访问”或“对文件夹的永久和完全访问”?

[英]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.

相关问题 如何访问 android 11(范围存储)中的 whatsapp/media 目录? - How can I access whatsapp/media directory in android 11 (Scoped storage)? Android:如何访问内部存储文件夹中的所有文件? - Android: How to access all files in a folder in internal storage? Scoped Storage - 下载文件夹访问 - Scoped Storage - Download folder access 我如何访问 android 11 中的任何文件夹 - how can i access any folder in android 11 Android Q (10) 请求获得访问所有存储的权限。 范围存储 - Android Q (10) ask permission to get access all storage. Scoped storage 有谁知道如何在 B4a 中使用 root 访问权限? - Does anyone knows how to use root access in B4a? Android-范围目录访问权限-获得对不存在文件夹的访问权限 - Android - Scoped Directory access - Get access to non existing folder 如何使用 Scoped Storage 访问特定文件夹并将文件写入其中 - How to gain access to a specific folder and write a file into it using Scoped Storage 保存文本文件 - 范围存储 Android 11 - Saving Text Files - Scoped Storage Android 11 如何使用 Storage Access Framework android 将文件保存到下载文件夹? - How to Save files to download folder using Storage Access Framework android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM