On Wed, Apr 25, 2012 at 2:55 PM, AKuhn <[email protected]> wrote:
> 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.
Please let the author of the alternative image picker know, so they
can fix their bug.
> 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);
Android devices are welcome to replace the Gallery with their own
implementation.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in NYC: http://marakana.com/training/android/
--
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