开发者

Android File directories

开发者 https://www.devze.com 2023-03-08 05:57 出处:网络
I have a code of getting the External Storage Directory of my android device: Environment.getExternalStorageDirectory(), it returns /mnt/sdcard/

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

精彩评论

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