I am using a Nexus 5 image emulator, and when I try to access an external public storage using the following code, the storage does not seem to mount.
String state = Environment.getExternalStorageState(); boolean m = Environment.MEDIA_MOUNTED.equals(state);
This returns false. I went to the .android / avd / Nexus_5_API_21_x86.avd / config.ini file and changed hw.sdCard to โyesโ, but that really didn't help. Not quite sure what I'm doing wrong. I would suggest that the SD card should be installed by default.
source share