Try the below code , it works me perfect. Any doubts let me know
Intent intent = new Intent("com.android.camera.action.CROP");
// this will open all images in the Galery
intent.setDataAndType(uriOfYOurImageThatToBeEdited, "image/*");
intent.putExtra("crop", "true");
// this defines the aspect ration
intent.putExtra("aspectX", widthOfImage);
intent.putExtra("aspectY", heightOfImage);
// this defines the output bitmap size
intent.putExtra("outputX", widthOfImage);
intent.putExtra("outputY", heightOfImage);
// true to return a Bitmap, false to directly save the cropped iamge
intent.putExtra("return-data", false);
//save output image in uri
intent.putExtra(MediaStore.EXTRA_OUTPUT, croppedImageUri);
System.out.println("CroppedImageUri : "+ croppedImageUri);
startActivityForResult(intent, 200);