Hi, I have successfully used android.provider.MediaStore.Images.Media.insertImage() to insert images, which then turn up in the picture viewer after a few seconds, see -
http://developer.android.com/reference/android/provider/MediaStore.Images.Media.html Maybe also have a look at - http://developer.android.com/reference/android/media/MediaScannerConnection.html Regards On Feb 10, 5:12 pm, Freddy <f...@charter.net> wrote: > ok, thanks, I got the picture viewer to spawn but it doesn't display > any new pictures since the viewer was run the first time. If I reset > the phone (i.e. the picture viewer is forced to restart and rescan > pictures) and launch the viewer again then the new pictures are > displayed as expected (so this is a caching issue). > > Does anyone know how to force the picture viewer to rescan photos when > it's being brought back to the front view? Some sort of Intent flag > maybe? > > Thanks. > > On Feb 9, 12:25 pm, Mateo Aeon Ortega <peli...@gmail.com> wrote: > > > The Activity I think you are looking for is: > > com.android.camera.ImageGallery2 > > > On Feb 9, 12:09 pm, Freddy <f...@charter.net> wrote: > > > > I don't want to re-inventthe wheel and would like to use the existing > > > android picture viewer. I've found some intents to launch built-in > > > android app such as the dialer > > > > Intent intent = new Intent(Intent.ACTION_MAIN); > > > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > > intent.setClassName(this, > > > "com.android.phone.Dialer"); > > > startActivity(intent); > > > > but have not found one for launching the picture viewer. How do I > > > launch the android built-in picture viewer app? > > > > Thanks!- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---