I am having a problem. I have a galaxy tab that comes with 16gb of internal storage and 2 gb of sd-card card.
when I use environment.getExternalStorageState, it returns mounted. However, when I remove the sd-card from my galaxy tab, it still returns mounted because it considers the internal storage as the external storage. Is there any way in which I can differentiate between the actual SD-Card and the Internal Storage?
Thanks
There doesn’t seem to be any public API for this currently. You could check by looking at
/proc/mountsbut your code would then be device-dependent, since not all devices mount secondary external storage (SD card) at the same place.