Creating SDCard for Android emulator
We moved. Please visit this link for this post.
There are 2 ways how to create SDCard
Android SDK contains tool which called mksdcard. This tool helps with this process. It works from command line.
mksdcard [-l label] <size>[K|M] <file>
-l – A volume label for the disk image which need to create
size – An integer value which specify size of image. It is possibility to specify size in kilobytes or megabytes. Examples: 1024K or 1M
file – The filename/path of the disk image
Ok. Now we know all parameters and can create needed disk image.
Just type command which is below with your parameters.
mksdcard -l sdCard 128M C:\sdCard.iso
Android SDK also contains android tool.
android create avd -n <avd_name> -t <targetID> -c <size>[K|M]
-n – name of created emulator
-t – target ID of emulator instance. Type
android list targets
and you will find out which target IDs are allowed
-c – size of created SDCard
In my case I type:
android create avd -n MyEmulator -t 1 -c 10M
What I did. I create emulator instance called MyEmulator with SDCard image which has 10 megabytes.
As you can see it is very simple operation.
Is this information useful for you? Leave the comment.