Can't create folder in extsd card

前端 未结 1 848
情话喂你
情话喂你 2021-01-17 00:52

I have an android tablet where external SD card called \"/mnt/extsd\" and its internal storage called \"/mnt/sdcard\".

When I am try to create a folder in \"/mnt/sdc

1条回答
  •  一整个雨季
    2021-01-17 01:34

    If Environment.getExternalStorageDirectory() returns /mnt/sdcard/, then that is the external storage that you should be using in your application. While your device may have other mount points (e.g., /mnt/extsd/), those are not part of the Android SDK and will be more or less unique to your specific device. You will need to contact your device's manufacturer to ask them if there is a way you can use /mnt/extsd/ from a regular SDK application.

    If you have root access, you might be able to work around this by changing permissions on /mnt/extsd/, but that is not really a programming topic and therefore is beyond the scope of StackOverflow.

    0 讨论(0)
提交回复
热议问题