I have problems detecting whether a (virtual) sd card is installed in
the emulator
I have created a virtual sd card using mksdcard, and now I start the
emulator with the option
-sdcard path

This seems ok, but when I run the following code

String state = android.os.Environment.getExternalStorageState();

if(!state.equals(android.os.Environment.MEDIA_MOUNTED))

{

throw new IOException("SD Card is not mounted. It is " + state + ".");

}


I get the IOException, telling me that the state is "removed"

does anybody knows what I am missing here?

Thanks

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