detecting virtual sd card

by petunio » Tue, 26 Jan 2010 23:10:02 GMT

Sponsored Links
 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?



Other Threads

1. Ngeflame ah

Jadi panas gak boss HH nya

#cari yg ice mencair

-- Jus\j_r00tMB300 Preclair 2.1 v1.3\
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


2. WTHELP : incredible restart trus..

Entah knapa sjak pagi incredible ga bsa booting. So saya mau coba untuk
reflash romnya... pas mo masuk ke recovery, ehh restart lg.. saya coba pilih
factory reset.. sama jg dya restart.. mohon pencerahan suhu2 skalian.. many
thanks in advance..


3. Layout templates repository

4. Notification ringtone keeps on repeating.

5. Gamine 0.3 (3D game engine)

6. [WTShare] SantaDroid

7. nexian jurney