Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install SD card on Android emulator (1.6)

Tags:

android

I want to install an SD card on Android emulator (1.6). I am using Eclipse 3.4.0.

I found one command to install an SD card:

mksdcard

But where should I execute it?

I tried in Dev toolsTerminal Emulator.

But it is giving an error:

permission denied

like image 314
Akshata Avatar asked May 07 '10 12:05

Akshata


People also ask

What is SD card emulator?

You can create a disk image and then load it to the emulator at startup, to simulate the presence of a user's SD card in the device. To do this, you can use the android tool to create a new SD card image with a new AVD, or you can use the mksdcard utility included in the SDK.

How do I increase space on my emulator?

On Android StudioClick Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary. Click Finish.

Can I install games on SD card Android?

You can move apps to an SD card from the Apps section of an Android phone's Settings with just a few taps. If your Android phone has an SD card slot, you can move apps out of internal storage. Storing apps on an SD card can free up space on your phone for other apps and data.


1 Answers

The easiest way to make sure your SD card is properly associated to your emulator instance is to create an AVD with an SD card. Do it as follows:

In Eclipse: Menu WindowAndroid SDK and AVD managerNew:

  • give a name to your AVD (no space allowed)
  • give a SDK target
  • give size to the wanted SD card
  • create the new AVD

Or, the second solution: you already have your own AVD and you want to add an SD card to it:

  • open a command prompt or terminal (Windows / Linux?)

  • cd to your sdk/tools directory

  • execute the following: mksdcard 256M NameOfYourCard

    (you can pass the size you want of course)

And then put the following in your run configuration in the "Launch Additional command line" field:

-sdcard fullPathToYourCard

It should work. If it's not clear, have a look in here for more detailed procedure.

like image 151
Sephy Avatar answered Oct 11 '22 22:10

Sephy