ArthurHub/Android-Image-Cropper

Camera Issues (Android 11 and 12)

rajeshvexil opened this issue · 6 comments

This is not working on latest device like android 11 and 12.

please read #875

And update to the new repository

Please close this issue.
So the Warning can be more visible

In android 11 and android 12 device after capture resultCode is 0 that means activity.RESULT_CANCELED. but expected resultCode is -1 that means activity.RESULT_OK

protected void onActivityResult(int requestCode, int resultCode, Intent result) {

    super.onActivityResult(requestCode, resultCode, result);
    if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {

really it's not working for 11 & 12 android version, please see the another crop image.

@uzzalcontact

please read #875

And update to the new repository

Please close this issue.
So the Warning can be more visible