12

I tried to follow explanation in the following posts:

  1. upload picture to emulator gallery
  2. How to add an image to the emulator gallery in android studio?
  3. How we save image in gallery of emulator

/mnt/sdcard empty folder in this location
/sdcard empty folder in this location
storage/sdcard no such location
data/media/0/Pictures files added, but can't access from galley

devtools -> media scanner/media provider also I don't have this options inside my emulator.

Community
  • 1
  • 1
Maor
  • 3,340
  • 3
  • 29
  • 38
  • I might be able to help you with this but I don't really understand what you are describing. Please describe what you are trying to do, show some code (not too much) where it doesn't do what you want, and explain exactly what is failing. – Peri Hartman Nov 18 '16 at 15:57
  • @PeriHartman I'm trying to add few images into emulator gallery, using Andoid Device Monitor, there is a path to navigate into, and then to push some images into it.. Please see the posts I was looking for before (Links above) – Maor Nov 18 '16 at 16:04
  • Ok, I think I understand. So you are able to successfully add pictures to the desired directory, specifically data/media/0/pictures, correct? The gallery program uses the MediaStore provider to find images rather than look in specific directories, and that is the root of your problem. In other words, you have moved the file to the directory and not updated MediaStore. I don't know if there's an app available to do that or if you'll have to write your own small program to do it. – Peri Hartman Nov 18 '16 at 16:11

1 Answers1

29

You can send any file into android emulator via drag-n-drop action. And then go to Settings - Storage and re-mount your sdcard.

Alexander Perfilyev
  • 6,739
  • 2
  • 17
  • 30