Somebody once asked on this list what the ARCHOS 5 Android tablet
returns for Environment.getExternalStorageDirectory().

The good news: it's not null.

The interesting news: it's /storage.

The second round of good news: this points to the bulk of the storage
space -- on my 32GB flash, /storage is where 30GB of the space resides.

The third round of good news: the value remains /storage even after you
pop a micro SD card in. I was briefly worried that it might switch to
/sdcard or something.

Really curious news: while Environment.getExternalStorageDirectory()
returns /storage, /sdcard does exist, and it does *not* point to the SD
card. Rather, it and /storage seem to point to the same spot, perhaps
via a symlink or hardlink.

Upshot: while you should use Environment.getExternalStorageDirectory(),
apps that hardwire "/sdcard" won't break when there's no SD card installed.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to