Grant
Grant

Reputation: 4543

How to copy images to Android emulator's sd card from hard disk?

I have to implement an Android 2.2 application which should be able to upload images selected from it's gallery, But I have no device with Android 2.2 so I have to test this on emulator, but I don't know how to copy images to emulator's sd card from my computer's hard disk. There are lot of similar type posts I found and none of them worked for me. So I hope your help

Thanks!

Upvotes: 5

Views: 7412

Answers (2)

adb push foo.jpg /sdcard/foo.jpg

Follow the documentation here : http://developer.android.com/tools/help/adb.html#copyfiles

Upvotes: 0

Hartok
Hartok

Reputation: 2137

If you're using DDMS tool (under Eclipse or not), you can just drag and drop your image to the selected folder. SDCard folder is under mnt folder.

enter image description here

Edited

DDMS can be found under ...\android-sdk\tools. In Eclipse, it is a perspective you can add by clicking on Window > Open Perspective > Other... > DDMS.

Upvotes: 9

Related Questions