I am trying to run an Android emulator and I cannot get it to recognize the SD card.
I went through all the usual configuration steps - I made sure that my application has the WRITE_EXTERNAL_STORAGE permission in my manifest, I made sure that my avd has SD card support enabled ( hw.sdCard = yes ), I made sure that I specified the SD card in setting up AVD. When I launch the application, it cannot create any new files or directories, and when I call Environment.getExternalStorageState() to check if the SD card is installed, it always returns removed .
I launched other, well-known projects to see if I was getting the same error, and I had other people trying to run the code to see if they could make it work. All other projects have the same problem, and other people who run the code got it working.
I am running OS X 10.8.2 on a Retina Macbook Pro, an Eclipse Juno release, and using the Android SDK 21rc4 preview.
Does anyone know what I can do wrong?
ADDENDUM: Here is the text of the config.ini file for the avd in question:
hw.sdCard=yes hw.lcd.density=240 sdcard.size=1024M skin.name=WVGA800 skin.path=platforms/android-16/skins/WVGA800 hw.cpu.arch=arm abi.type=armeabi-v7a hw.cpu.model=cortex-a8 vm.heapSize=48 hw.ramSize=512 image.sysdir.1=system-images/android-16/armeabi-v7a/
source share