Using SDCard image for Android emulator in Ubuntu Linux

It is my first working day in this year and I started it with installing Ubuntu Linux 9.10 on my PC.

Why I need this system?
I want to try use it in my development environment. I used Windows XP,not Vista :) .
First of all I found that emulator instance works slowly than in my Windows machine,but for me it is not very big problem…I think so.
In Linux I found one very good solution for working with SDCard image. In Linux I can use file manager when need to access SDCard and it is very useful. Here I want to provide steps for accessing SDCard through file manager:

  1. Create an image of an SDCard (1GB)
    mksdcard 1024M /home/sheff/SDCard.iso
  2. Mount the image to a loop device
  3. sudo losetup /dev/loop0 /home/sheff/SDCard.iso
  4. Make a folder where you want to mount the image
    mkdir /home/sheff/sdcard
  5. Mount the loop device into a folder so that you can put things directly on it
    sudo mount /dev/loop0 /home/sheff/sdcard
  6. Open the folder using root account Alt+F2
    gksudo nautilus /home/sheff/sdcard

    Now you can use this folder as other folder in the system.

Note:don’t forget to load this image to the emulator. You have 2 ways.

  • From command line
    emulator -sdcard /home/sheff/SDCard.iso
  • From Eclipse IDE
    Run configuration…->your_project->Target tab->Additional Emulator Command Line Options:

    -sdcard /home/sheff/SDCard.iso

    Additional emulator options

To see your files or new folders need to restart emulator.

 

If you’d like to get the latest posts as soon as they’re published,subscribe to our feed!

Share

No related posts.

Leave a Reply

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong>

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.