I successfully adding a jpg file into ContentResolver by using insert, and I can query contentResolver to get information about the jpg file. But if I go to Pictures app, the new picture is not showing. I debugged into the code and found out that in the Camera source code, when it tries to generate bitmap for this new file, the BitmapFactory.decodeFileDescriptor(fd, null, options) sets the options.outwidth and outheight to -1. If I restart the emulator, the value will be correct 800 X 600. So, what do I need to do to make sure that after I generate a new file (.jpg) in SDCard and it will be shown in Pictures right away. I thought about using rescan of content provider, but because I might need to generate more than one jpg files at the same time, if they all call rescan, it might be a mess. Any suggestions?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---