Android: Usb storage location in 3.0? -
my app provides file browser. set root of file browser to: environment.getexternalstoragedirectory()
; which, on acer iconia tab, returns "/mnt/sdcard". however, many 3.0 devices support usb storage. there safe/proper way path "/mnt"? (to directory contains sdcard , usb storage)
if environment.getexternalstoragedirectory();
gives /mnt/sdcard/
, hoping there safe method /mnt/usb_storage
. there not appear be. however, environment.getexternalstoragedirectory().getparentfile()
appears reliable give parent directory of /mnt/usb_storage
.
Comments
Post a Comment