Thanks but I'm trying to insert a photo into the android photo gallery viewer so the photo is immediately viewable. Basically I need the gallery to rebake and display new content. Your sample appears to handle the other direction (accepting a photo from the viewer) which is not what I need.
On Feb 25, 10:11 am, todd <tdonahue...@gmail.com> wrote: > If you want to just pick a photo using the built in photo viewer, send > the following intent: > > Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); > photoPickerIntent.setType("image/*"); > startActivityForResult(photoPickerIntent, 1); > > and then in your Activities result handler do the following: > > protected void onActivityResult(int requestCode, int resultCode, > Intent intent) > { > super.onActivityResult(requestCode, resultCode, intent); > > if (resultCode == RESULT_OK) > { > Uri photoUri = intent.getData(); > > if (photoUri != null) > { > // do something with the content Uri > } > } > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---