The first question is
1. How to create a new Virtual SD card in emulator in ANDROID?

Many times we may have not enough memory for our application to run on the emulator.
So what we do?
One method is to create new virtual device with more memory.
Another method is to extend the device’s internal memory.
Third method is to create an SD card for the emulator.

Here is how you create a new SD card for the emulator.
First you have to navigate to you android installation directory and go to tools from there execute this command

C:androidtools>mksdcard -l mySdCard 1024M mySdCardFile.img

A file image named “mySdCardFile” will be created with about 1024 MB memory or you can give it in KB also.

Now SDCard created.Check your C:androidtools directory and confirm that the image has been created.


SDcard created

2. How to start emulator with the created SDCard?

Try this in the command prompt
Note: Make sure your emulator(Here VD1.6 created by me) is not running.

C:androidtools>emulator -avd VD1.6 -sdcard mySdCardFile.img

Now go to Eclipse Open DDMS on the right top of the window and open the File-Explorer from the Window-Menu

There you will see the SDcard

No image


If you are not starting the emulator with the sdcard you will not see the sdcard here.

You can find more options on emulator here



  1. Pingback: How to add files like images inside your emulator in ANDROID? | Coderz Heaven

  2. buy tramadol April 16, 2011 at 7:52 am

    Great .Now i can say thank you!

  3. Malik April 16, 2011 at 1:27 pm

    @buy tramadol-> thanks … and always welcome… 🙂

  4. ECzrtnnN April 18, 2011 at 1:07 pm

    I want to post quick hello and want to say appriciate for this good article. 3XnEhLSxTXtK9m

  5. Pingback: ANDROID - Upload an image to a server | Coderz Heaven

  6. Pingback: How to create and delete a directory in SdCard in ANDROID? | Coderz Heaven

  7. Đào Hữu Biên June 10, 2011 at 9:45 pm

    Can’t you help me create a sdcard in Ubuntu 11.04
    I tried create with AVD Manager but it repond a meassage “Failed to create the SDCard”

    • James June 10, 2011 at 10:01 pm

      What are the steps you followed?
      try this
      Create SD Card image using mksdcard command
      mksdcard -l SD256M 256M /home/username/sdcard256m.img
      Launch Android Emulator with command line option
      -sdcard /home/username/sdcard256m.img

  8. Anonymous June 11, 2011 at 9:51 pm

    Great review! You actually overviewed some curious things on your blog. I came across it by using Bing and I’ve got to admit that I already subscribed to the RSS, it’s very great 🙂

  9. Nehatha June 17, 2011 at 10:33 am


    I’m able to create sdcard/ for my emulator, and i have successfully copied sample image to my sdcard/.

    but when i tried to browse the files from Gallary, it is displaying “No Media Found” message.
    Can you plz help me to resolve this.


    • James June 17, 2011 at 9:26 pm

      Nehatha, Please restart your emulator and browse the gallery.

  10. Lourie Ounsy June 23, 2011 at 10:59 pm

    Really cool post, highly informative and professionally written..Good Job

  11. Pingback: How to check SDCard free space in ANDROID? | Coderz Heaven

  12. Satish November 7, 2012 at 6:08 am

    It’s Really nice and usefull……….!


Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.