Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Most recent image saved on SD card doesnot display in Picture browser..

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am saving an image on the SD card using standard Java I/O. The file is created and stored successfully on the SD card(fact ascertained using DDMS). But when I go to Picture browser on the emulator and view pictures on SD card, the new file that I saved doesnot display in the grid.
For a referesh to happen, I have to run Media Scanner in Dev Tools explicitly or add a media scanner code in my application after saving the image.

Is this an emulator problem? What do I need to do to refresh the status so that the most recent image written to disk is visible?

Thanks.
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Monu,

Have you sorted out this problem? Have you tried to store image with Media store? Please have a look at this otherwise.

Thanks & Regards
Pratik Goswami
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!