There are more than one app that could handle CROP intent, but I only want gallery to do it without choosing because other app like google+ will have really bad rendering resolution, and choosing process doesn't have good user experience.
Intent intent = new Intent("com.android.camera.action.CROP");
intent.setType("image/*");
Intent i = new Intent(intent);
ResolveInfo res = list.get(0);
i.setComponent(new ComponentName(res.activityInfo.packageName,
res.activityInfo.name));
startActivityForResult(intent, REQUEST_CROP_CAMERA);
So how could I specify Gallery app to handle CROP Intent without user's choice?
you could specify the package in your intent:
intent.setPackage("com.android.gallery");
this will set an explicit application package name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With