Search code examples
androidimageandroid-intentkindle-fire

crop image in amazon kindle devices by using crop intent


I'm trying to crop Imageview. In all devices image crop by using crop intent is working fine but not working for amazon kindle devices.

Intent intent = new Intent("com.android.camera.action.CROP");       
intent.setType("image/*");
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
intent.putExtra("scaleType", "centerCrop");
intent.putExtra("crop", "true");
intent.putExtra("outputX", 1200);
intent.putExtra("outputY", 1600);
intent.putExtra("aspectX", 0);
intent.putExtra("aspectY", 0);
intent.putExtra("scale", true);
startActivityForResult(i, CROP_FROM_CAMERA);

is there any way to do that. Because crop inent is not supported by kindle.


Solution

  • Try to use some custom library for croping :

    1. https://github.com/edmodo/cropper

    2. https://github.com/jdamcd/android-crop