Take the 2-minute tour ×

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 i = new Intent(intent);
ResolveInfo res = list.get(0);
i.setComponent(new ComponentName(res.activityInfo.packageName,
startActivityForResult(intent, REQUEST_CROP_CAMERA);

So how could I specify Gallery app to handle CROP Intent without user's choice?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

you could specify the package in your intent:


this will set an explicit application package name

share|improve this answer

Your Answer


