访问 android 上的所有文件

Access all files on android

我正在尝试制作一个文件管理器类型的应用程序,我想访问所有文件。我知道它需要 MANAGE_EXTERNAL_STORAGE 许可,但我不知道我应该使用哪个 api。

I am trying to make a file manager type application and I want to access all files.

我建议您从这里开始:Manage all files on a storage device (keep in mind you cannot write internal storage 在 non-rooted 设备上)。

I am not able to figure out which api should I use.

MediaStore might suit your needs (even if your question is a bit generic) , so give it a reading to Access media files from shared storage.