I want my app to be able to read and copy files from the DCIM/MEDIA100 folder on an external SD card, but despite including the WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions in my AndroidManifest my app does not have visibility of the external SD card. I'm running Android 4.4.2
So when I execute the code below, m_subdirs will list "sdcard" (in internal storage), but not extSdCard (the external SD card). Am I completely unable to get read access to the external SD card in this Android release? I got the impresssion from the link below that reading from the external SD would be possible if I included the permissions above. ??? Accessing files from external SD card memory
m_dir = "/mnt";
m_subdirs = getDirectories(m_dir);
kitkat 4.4.x has SD-card Restrictions . see this page
我认为您必须查看/storage
,在那里您应该找到sdcard1
或使用getExternalFilesDirs
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.