Android Image Crop
Intent intent = new Intent("com.android.camera.action.CROP");
// this will open all images in the Galery
intent.setDataAndType(photoUri, "image/*");
intent.putExtra("crop", "true");
// this defines the aspect ration
intent.putExtra("aspectX", aspectY);
intent.putExtra("aspectY", aspectX);
// this defines the output bitmap size
intent.putExtra("outputX", sizeX);
intent.putExtra("outputY", xizeY);
// 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, uri);
Ref :
01 . http://stackoverflow.com/questions/3846338/how-to-crop-an-image-in-android
02. example source :
http://linux.linuxidc.com/2012%E5%B9%B4%E8%B5%84%E6%96%99/11%E6%9C%88/11%E6%97%A5/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8Android%20MediaStore%E8%A3%81%E5%89%AA%E5%A4%A7%E5%9B%BE%E7%89%87/
