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 tools → Terminal Emulator.
But it is giving an error:
permission denied
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.
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.
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.
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 Window → Android SDK and AVD manager → New:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With