upload picture to emulator gallery

2019-01-11 00:32发布

I want to add picture in emulator's gallery. But i am not able to do this. How to do this? any clue! Though i have gone through a answer posted in stack over flow but didn't get success with that answer.

8条回答
Explosion°爆炸
2楼-- · 2019-01-11 01:22

I can put images in my SD Card in this way:

  1. disconect my phone from USB

  2. using adb push command line with the folder storage/sdcard and not /sdcard, example

    D:\adt-bundle-windows-x86-20131030\sdk\platform-tools>adb push "d:\star.jpg" storage/sdcard

  3. close the emulator and run again

  4. I check in Eclipse -> DDMS -> File Explorer tab, and I see the image inside storage/sdcard folder

查看更多
虎瘦雄心在
3楼-- · 2019-01-11 01:24

Check this Once you have a virtual SD card in your emulator, if you're not comfortable with mtools or if you don't know how to mount a loopback device on Linux (which is really easy by the way), just use adb push to upload your images. Possible example:

adb shell mkdir /sdcard/Pictures
adb push mypic.jpg /sdcard/Pictures
查看更多
登录 后发表回答