detecting virtual sd card

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

detecting virtual sd card

Postby JJ » Tue Jan 26, 2010 1:58 pm

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();



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?

Posts: 35
Joined: Tue May 13, 2008 1:18 pm


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests