开发者

Android File directories

I have a code of getting the External Storage Directory of my android device: Environment.getExternalStorageDirectory(), it returns /mnt/sdcard/ But when I use the files and folders viewer of 开发者_JAVA技巧my android device (samsung galaxy tab), the external storage direcory there is named external_sd which is under the root folder. So to access the sd card, I have to go /Root/external_sd

Strange, how to I fix this? so that when I run the code Environment.getExternalStorageDirectory(), it will return the /Root/external_sd or fix my directory so when I have to access my sd card using the files and folder viewer, I will access /mnt/sdcard..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜