Sunday, April 24, 2011

Adding SD Card to Android Emulator in Eclipse

1. Navigate to your android-sdk directory's "tools", for example, your equivalent of "android-sdk-linux_x86/tools"
2. Do ./mksdcard 64M YourSdCardName
3a. Run the emulator in Eclipse, do, or if you have Windows, follow this

  1. Run > Run Configurations
  2. Select the "Target" Tab
  3. Scroll down to "Additional Emulator Command Line Options" and add in
  4. -sdcard [Your full path to ]/tools/YourSdCardName
  5. Apply
  6. Run

3b. Run the emulator in the terminal:
        ./emulator -avd YourAndroidEmulatorName -sdcard YourSdCardName

No comments:

Post a Comment