Try sending the intent as shown below:
mSavedUri = Uri.fromFile(new File("/sdcard/cropped.jpg")); mImageSelectIntent = new Intent(Intent.ACTION_GET_CONTENT, null); mImageSelectIntent.setType("image/*"); mImageSelectIntent.putExtra("crop", "true"); mImageSelectIntent.putExtra("aspectX", 4); mImageSelectIntent.putExtra("aspectY", 3); mImageSelectIntent.putExtra("outputX", mImageWidth); mImageSelectIntent.putExtra("outputY", mImageHeight); mImageSelectIntent.putExtra("output", mSavedUri);
The cropped image will be saved as a cropped JPG and will not be returned to you through the "data".
source share