upload picture to emulator gallery

前端 未结 8 961
闹比i
闹比i 2020-12-02 20:12

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\

相关标签:
8条回答
  • 2020-12-02 21:03

    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

    0 讨论(0)
  • 2020-12-02 21:07

    I used this one, it worked for me adb push "C:/image.jpg" /mnt/sdcard/DCIM

    then run Media provider (in developer tools) :)

    0 讨论(0)
提交回复
热议问题