This is indeed a significant issue. We should be able to check for
space availability -- this is one important source of error
information that we could be passing on to the user.

Supposedly the media is mounted:
android.os.Environment.MEDIA_MOUNTED.equals("mounted")

Supposedly I can write to the direcotry:
sampleDir.canWrite()

So I try to create a file:
mSampleFile = File.createTempFile(SAMPLE_PREFIX, SAMPLE_EXTENSION,
sampleDir);

But get this uninsightful IO error:
java.io.IOException: Cannot create: /sdcard/x28335.amr

So, one extra check could be for space -- but currently this seems to
be an API limitation.

--~--~---------~--~----~------------~-------~--~----~
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