Start the activity with startActivityForResult. Then handle the returned data in onActivityResult. The source below is how I do it. There should be enough here to get the photo data. Carmen -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop
Call the Intent somewhere in your activity using startActivityForResult: Intent i = new Intent(Intent.ACTION_GET_CONTENT); i.setType("image/*"); startActivityForResult(i,4); // activity id is 4 // handle the activity // look at documentation for AssetFileDescriptor. That is how I ultimately got the photo // http://developer.android.com/reference/android/content/res/AssetFileDescriptor.html protected void onActivityResult (int requestCode, int resultCode, Intent data){ if (requestCode==4){ grab the result if (resultCode == RESULT_OK) { try { AssetFileDescriptor thePhoto = getContentResolver().openAssetFileDescriptor(data.getData(), "r"); ... } } if (resultCode == RESULT_CANCELED) { } } On Tue, Dec 1, 2009 at 9:44 AM, Streets Of Boston <flyingdutc...@gmail.com>wrote: > Take a look the the Intent framework. > Start an activity given an intent (PICK_IMAGE) and this should start > any app that responds to it (Gallery or some other 3rd party program). > > For examples, just take a look at the Contacts application in > Android's framework's source-code. > > On Dec 1, 4:28 am, Tom <thomas.coz...@gmail.com> wrote: > > Nobody? > > > > Tom > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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