Quantcast
Viewing all articles
Browse latest Browse all 8068

Detect the availability of External SDCard on Android

Hi there,

I am using the following to check the availability of External SDCard.

Titanium.Filesystem.isExternalStoragePresent( )
I found that it always return true even external SDCard is not mounted.

In the mean time, the following code return the path of internal storage, something like "/mnt/sdcard/...".

Titanium.Filesystem.getExternalStorageDirectory( )
I think that's why isExternalStoragePresent return true.

But what I really want is to detect whether physical SDCard is mounted or not.

How can I achieve such detection?


Viewing all articles
Browse latest Browse all 8068

Trending Articles