I have some items in my ubuntu 12.04 desktop. I want to transfer them into the Sdcard of one of the avds in my android emulator (android-sdk-linux) which I have installed on the same system.
Like to know how to do the above.
|
I have some items in my ubuntu 12.04 desktop. I want to transfer them into the Sdcard of one of the avds in my android emulator (android-sdk-linux) which I have installed on the same system. Like to know how to do the above. |
|||||||
|
|
1. Using command line: Here's how you can copy files to an SD card image. You have to use Copy from desktop to emulator:
Copy from emulator to desktop:
Here Here is an example:
foo.txt will be pushed (copied) to the emulator. 2. Using DDMS UI: Here's how to work with emulator's file system using DDMS.
I personally prefer the adb pull and adb push commands as you can copy multiple files (in a single directory) with just one line command, using DDMS you can copy only one file at a time (no directory). |
||||
|
|
|
To transfer data from desktop to an emulator's SdCard on Linux do this:
Let's create a 64MB sd card for our Android emulator. From a terminal do this:
From a terminal:
Now from inside your code you can get to the sd card's path with:
More you can read here. |
|||
|
|