My app provides a file browser. I set the root of the file browser to: Environment.getExternalStorageDirectory(); which, on my Acer Iconia Tab, returns “/mnt/sdcard”. However, many 3.0 devices support usb storage. Is there a safe/proper way to get the path to “/mnt”? (to the directory that contains the sdcard and usb storage)
My app provides a file browser. I set the root of the file browser
Share
If
Environment.getExternalStorageDirectory();gives/mnt/sdcard/, i was hoping there would be a safe method to get/mnt/usb_storage. There does not appear to be. However,Environment.getExternalStorageDirectory().getParentFile()appears to reliable give the parent directory of/mnt/usb_storage.