ArthurHub / ArthurHub/Android-Image-Cropper

RuntimeException: android.os.TransactionTooLargeException

Open
#279 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hi Guys,

Please help.

I was tried to apply this library in my current project for cropping images and it is working on kitkat-lollipop. When I run it to Nougat, the app encounter forcing closed with TransactionTooLarge Exception. This exception is occured when "com.theartofdev.edmodo.cropper.CropImageActivity" is open together with Intent chooser.

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1050236 bytes
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3781)

I apply this code in my Edit button;

if (CropImage.isExplicitCameraPermissionRequired(AccountProfileActivity.this)) {
requestPermissions(new String[]{Manifest.permission.CAMERA}, CropImage.CAMERA_CAPTURE_PERMISSIONS_REQUEST_CODE);
} else {
CropImage.activity(null)
.setGuidelines(CropImageView.Guidelines.ON)
.setOutputCompressQuality(100)
.start(AccountProfileActivity.this);
}

Please let me know if I did something wrong.

Thank you very much for your help.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.