Android Studio AVD Manager not mounting sd card

a 夏天 提交于 2019-12-12 04:54:57

问题


I am using the emulator with the Nexus 5 image and when I try to access the external public storage using the following code, the storage doesn't seem to be mounted.

    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" as well, but that didn't really help. Not exactly sure what I am doing wrong. I would assume the sdcard should be mounted by default.

来源:https://stackoverflow.com/questions/28037723/android-studio-avd-manager-not-mounting-sd-card

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!