问题
I am facing some storage issue. i am working on an application where i have to access phone's on board external storage and an External sdCard storage which i am getting with this code
Environment.getExternalStorageDirectory();
But when onBoard external memory exists then this code returns the path of onBoard memory not the external sdCard while the sdCard is mounted
now the problem is.. i want to access both memories onBoard and external sdcard is there any way to access both memories
回答1:
Try out this:
String m_str = Environment.getExternalStorageDirectory()
.getAbsolutePath().toString(); //return path sdcard/mnt
来源:https://stackoverflow.com/questions/14108160/android-access-external-storage