Android Studio AVD Manager does not mount SD card

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.

0
source share

Source: https://habr.com/ru/post/978659/


All Articles