简体   繁体   中英

Android Access External Storage

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

Try out this:

String m_str = Environment.getExternalStorageDirectory()
               .getAbsolutePath().toString();           //return path sdcard/mnt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM