Android Access External Storage

I ran into a storage issue. I am working on an application where I need to access the external storage on an external device and the external sdCard storage that I get with this code.

Environment.getExternalStorageDirectory(); 

But when there is external onBoard memory, this code returns the path to the onBoard memory, and not to the external SDCard when sdCard is installed.

Now the problem is that .. I want to access the memory on board and the external SD card, is there a way to access both memory

+7
source share
1 answer

Try the following:

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

All Articles