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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With