How to import images into the gallery of an Android Virtual Device using Android Studio:
I'm using Android Studio 1.4.1 and a API 15 virtual device.
Warning: This is manual intensive so it is not a good solution for a large number of images.
- Create a virtual device using Android's Device Manager (AVD), Menu /Tools/Android/AVD Manager.
- Start this virtual device.
- Start the Android Device monitor, Menu */Tools/Android/Android Device Monitor. In the Devices tab (upper left) you should see your device. It should be Online (see this screenshot)
- On the right window is the File Explorer. Go there and select the /mnt/sdcard/Pictures directory. It should be highlighted (see this screenshot)
- Add jpegs to this directory by clicking on the Push a file onto the device icon (the little phone icon I highlighted in the above screenshot. You can add only one photo at a time, dadburnit.
- Go to your device and run the Dev Tools app.
- Scroll down and select Media Provider.
- Click on the Scan SD Card button. This should copy the images you added in step 5 to the gallery. Go to the gallery and look, they should be there.