我希望我的应用能够从外部 SD 卡上的 DCIM/MEDIA100 文件夹中读取和复制文件,但是尽管我的 AndroidManifest 中包含 WRITE_EXTERNAL_STORAGE 和 READ_EXTERNAL_STORAGE 权限,但我的应用无法看到外部 SD 卡。我正在运行 Android 4.4.2
所以当我执行下面的代码时,m_subdirs 将列出“sdcard”(在内部存储中),但不会列出 extSdCard(外部 SD 卡)。在此 Android 版本中,我是否完全无法读取外部 SD 卡?我从下面的链接中得到的印象是,如果我包含上面的权限,就可以从外部 SD 读取。 ??? Accessing files from external SD card memory
m_dir = "/mnt";
m_subdirs = getDirectories(m_dir);
最佳答案
kitkat 4.4.x 有 SD 卡限制。 see this page
关于java - 应用程序无法访问外部 SD 卡(只读),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29967373/