Although you can have logat on a real device too, if you need to use an emulator try transferring the images through the Android Device Monitor, accessible from the toolbar in Android Studio (it's in eclipse too, of course).
Once you select the device from ADM, you can see the folders tree and copy things inside
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.
I'd like to complement Mithilesh Izardar's answer:
Indeed the best approach is simply to "Drag and Drop", which afterwards you can find the files in the emulator at Settings → Storage → Internal Storage → Explore → Download (API 25).
The problem for me was that after following these steps the pics weren't appearing neither in the "Gallery" nor in the "Downloads" (by simply clicking the "Downloads" icon).
The reason for this is because by default everything in the emulator has no permissions...so all you gotta do is give the "Gallery" storage permission: Settings → Apps → Gallery → Permissions (API 25)
Ps: If you just copied the pictures, the new ones won't show up right away. You should either restart the emulator, or remount the sdcard (at Settings → Storage unmount the sdcard by clicking the eject icon then remount it)
Open emulator and File Explorer (Finder in Mac) side by side. Choose the file you want to copy then Drag and Drop the file onto the emulator. The selected file will be copied to the Downloads folder of the emulator.
How to view files in Android Studio:
Android Studio has Device Explorer to explore emulator content (Earlier we used to have DDMS, which is deprecated in Studio 3+). Goto View -> Tools Window -> Device File Explorer and you can see the explorer window. Goto Storage -> emulated -> 0 ->Download, if you don't see the file here, please restart the emulator and that's it.
Note: You don't see Device Explorer if you have opened a Flutter project.
You can also view the image files in Android Studio by double-clicking the file in the emulator.
Others have already answered the question, this is to show how you can do it in the real device. Of course, you have to use the emulator if you have some reasons against using your real device.
Logs and exceptions will be displayed in the 'Run' tab in Android Studio.
I have worked on apps which have C++ and Java.
some how drag and drop doesn't work for me, but this worked.
go to Device explorer, right bottom , vertical tab generally.
in directory tree choose mnt\sdcard<destination Directory>, right click on it, select "Upload", then select desired files you want to upload.
Device File explorer