n~droid generation

Taking ndroid for a ride…

android, refresh image thumbnails, or sd card before calling an intent to choose an image, or rescan image folder in gallery

| Filed under howtos

Hello every1…
So I had looked and search and read and….I guess you all know the routine when you’re looking for something android related online and how long sometimes it takes for you to find it working as you want it to….

Your application uses the camera to take a picture.
U then enable the user to go to a gallery preview you have created, and do what ever with the pictures he has just taken.

The thumbnail gallery preview does not show the recent photo/s the user has taken.

So here is the code I created:

  1. Your camera Activity saves the image file to a specific location.
  2. Then you wish to update the thumbnail gallery db.
  3. The user switches to the gallery preview.
  4. You need to call addImageGallery(file) right after image file has been saved.



Hope that was helpfull….
Full code will be sent upon request….



Development & Design: http://nwg.co.il
  • Google+
  • LinkedIn