This has been working for me, at least on a Droid, G1 and Nexus1:
final Intent intent = new Intent("com.android.camera.action.CROP");
intent.setData(mImgUris[1]);
intent.putExtra("noFaceDetection", false);
//intent.putExtra("outputX", width);
//intent.putExtra("outputY", height);
//intent.putExtra("aspectX", width);
//intent.putExtra("aspectY", height);
//intent.putExtra("scale", true);
//intent.putExtra("output", Uri.parse("file:/" +
mFile.getAbsolutePath()));
startActivityForResult(intent, R.id.view_image_menu_crop);
On Feb 13, 3:05 pm, Adarsh Pandey <[email protected]> wrote:
> Hi,
>
> We are facing problem with cropimage activity, is there any changes?
> it gives error related to permission.
>
> java.lang.SecurityException: Permission
> Denial: starting Intent { act=android.intent.action.EDIT
> dat=content://
> media/external/images/media/12 cmp=com.android.camera/.CropImage (has
> extras) } from ProcessRecord{43b72040 374:com.abc/10028} (pid=374,
> uid=10028) requires null
--
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
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.