This is the code which opens gallery and pick an image to crop it. The change I need is I don't want to open the gallery to pick image. I have already image in my imageview. How can I pass uri of image with intent to use direct crop feature of gallery. what modification I need to do this in below code. Thanks!
Intent intent = new Intent();
// call android default gallery
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
// ******** code for crop image
intent.putExtra("crop", "true");
intent.putExtra("aspectX", 0);
intent.putExtra("aspectY", 0);
intent.putExtra("outputX", 200);
intent.putExtra("outputY", 150);
I have modified it with
Intent intent = new Intent("com.android.camera.action.CROP");
intent.setData(edtImgUri);
but it is also not working.