Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upload picture to emulator gallery

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.

like image 507
Sudipta Som Avatar asked Mar 01 '11 07:03

Sudipta Som


People also ask

How do I add files to an emulator?

To add a file to the emulated device, drag the file onto the emulator screen. The file is placed in the /sdcard/Download/ directory. You can view the file from Android Studio using the Device File Explorer, or find it from the device using the Downloads or Files app, depending on the device version.


1 Answers

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 
like image 140
Felix Avatar answered Oct 12 '22 04:10

Felix