On Sat, Jun 16, 2012 at 9:27 AM, Terry <terb...@gmail.com> wrote:
> I have been searching for answers to this question, but found none.
> The Environment method getExternalStoragePublicDirectory() normally
> seems to returns "/mnt/sdcard", regardless of whether the sdcard is
> mounted or not. It is easy to detect if it is unmounted, but in that
> case it is NOT so easy to find out WHERE to save data. If the sdcard
> is unmounted, writing to "/mnt/sdcard" normally fails.

Usually, at this point, you don't write anything, but rather alert the
user that you cannot work with your files at the present time. You
could always fail over to saving to internal storage, though space may
be an issue.

> For devices which emulate the sdcard (in case it is unmounted), there
> often (?) seem to exist a directory "/mnt/emmc"

I presume that by "often" you mean "not often".

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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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

Reply via email to