When I try to push a photo onto the android emulator, I am not able to see the photo in Albums

StackOverflow https://stackoverflow.com/questions/12777564

Pregunta

I am new to Android and now trying to retrieve contact photo (thumb nail) from a content provider and set it onto my app. But for that as i am running on an AVD, i pushed some .png photos onto my 2.2 version. Now i tried to create a contact with the photo, but the Gallery is showing "No Media Found", hence i am stuck here.
Please help me in getting the photo visible in gallery.

Note : I am aware of the following facts :

  1. I have restarted my AVD to force the Media Scanner to do its initial mockups.
  2. Also i have seen the .png file through the File Explorer View of Eclipse Framework.
  3. But strangely, I am not able to pull the file off the phone.
  4. I have taken help of the link get the path of a Gallery Folder in Android for understanding the general view on Media Scanner.
¿Fue útil?

Solución

I believe this is because the application doesn't know if there are images inside /data.

Try to put your images in:

/mnt/sdcard/Pictures
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top