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

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….

Case:
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.

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

Solution:
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.

 

Code:
 

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

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *


5 − = one

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

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