That gets me the Uri but still returns -1 as a resultCode. Do you have any idea why?
Also, I need to be able to take a picture via the Camera app. I can't test it on the emulator but I have this right now: Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_RESULT); Does that look right? On Jul 23, 5:52 pm, jeffro <[email protected]> wrote: > Try this instead: > > Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); > photoPickerIntent.setType("image/*"); > startActivityForResult(photoPickerIntent, 1); > > Jeff > Visit Trackaroo.com! > Trackmaster - Motorsports Lap Timer > Dynomaster - Performance Dyno > > On Jul 23, 4:44 pm, KG <[email protected]> wrote: > > > Hi Everyone, > > > I'm trying to allow the user to choose an image to load into my app > > using the default image browser on the phone. > > Here is what I have so far: > > > Intent findImageIntent = new Intent(Intent.ACTION_GET_CONTENT); > > findImageIntent.setType("image/*"); > > startActivityForResult(Intent.createChooser(findImageIntent, "Select > > Picture"), IMAGE_SELECT); > > > This correctly launches the image chooser and I'm able to click one > > which returns me to my main activity. However, it does not load the > > image I selected, returning a -1 for resultCode in onActivityResult. > > > Anyone know what I'm doing wrong? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

