
Luckily the emulator comes with a means to pass in arguments which include defining an SD Card image. When searching the Android site I found the information on how to setup the Emulator. Here there are instructions on creating an SD Card image which you can then add files to and pass into the emulator through the arguments. Following these instructions was relatively straight forward but I did find some steps required some research. Here is what I found….
To create the image you can use the mksdcard command which is found in the tools folder of your android sdk. I used the following
/$ ./mksdcard -l sd1024M 1024M /home/android/sd1024M.img
which equates to
/$ mksdcard [-l label] <size> <file>
You can then use a tool like mtools to copy content into the image.
/$ mtools -c mcopy -i /home/android/sd1024M.img -v -s /home/android/path/to/folder/ ::
Finally add the SD Card to the arguments in the emulator so that the content becomes accesible when you run it.
/$ -sdcard /home/android/sd1024M.img
From there you should be able to access files such as music and photos to help fine tune and improve the quality of your results.
Filed under: android