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

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

--



Other Threads

1. Obtain ip address

Agan-agan dan para suhu, salam kenal..
Ane nubie nih pke android, ane pengen tanya, kenapa tiap hero ane mo konek
wifi kok obtain ip address mulu ya?padahal klo pke gadget laen ga masalah
tuh..ane dah coba factory reset tp tetep ga bisa...mohon masukannya ????

-- 
===============

2. Firefox 4

Dear all,

Minta bantuannya donk untuk uploadin apk firefox 4 kesini, soalnya cari di
market ga ada2, meski dah pake market enabler. Sekilas kok keren banget yah
tampilannya di PC, sampe2 rekor unduhannya ngalahin IE9.

Maturnuwun, gracia.




-- 
Kunjungi Forumnya androider Indonesia : http://forum.robotijo.org

Japri & kenalan:
i...@robotijo.org

in a world of doesn't, i don't care. droid does.

-- 
===============

3. YM ngga stabil di andro..

4. Fw: WTS Motorola Droid Pro Kondisi 99,9%

5. Email Intent Back Button Handling

6. Where can I find the samsung android api docs?

7. DashBoard