Currently I am launching an intent for the gallery to select an image.

Intent intent = new Intent(Intent.ACTION_PICK);
intent.setData(Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, R.string.choose_picture);

Normally this works well, but on one of our platforms someone
installed an alternate image picker.  When the above code is executed
it does not launch the native gallery, it bring up a "Complete action
using" menu which lets you select which application to use.  On one of
our devices this alternative image picker crashes, the native gallery
always works.

Is there any way to force the intent to launch the native Gallery
instead of bringing up the "Complete action using" menu?  I have tried
the following code and it fails with an
android.content.ActivityNotFoundException

Intent intent = new Intent();
intent.setClassName("com.android.camera",
"com.android.camera.GalleryPicker");
intent.setData(Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, R.string.choose_picture);

-- 
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

Reply via email to