Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

Not working in API Level 29 (Android 10)

Open SaurabhGaddelpalliwar opened this issue 5 years ago • 8 comments

when i capturing the image from camera this cropper in not working in Android 10 and not getting any error . please help me for this type of issue. Please give the update for Android 10

SaurabhGaddelpalliwar avatar Feb 12 '20 07:02 SaurabhGaddelpalliwar

Sounds related to this unsolved issue https://github.com/ArthurHub/Android-Image-Cropper/issues/721

friederikewild avatar Feb 27 '20 16:02 friederikewild

@SaurabhGaddelpalliwar Did you find any solution ?

priyankaandroid avatar Mar 02 '20 07:03 priyankaandroid

try adding android:requestLegacyExternalStorage="true" in your manifest file. that fixed for me, was happening because of new scoped storage introduced in android 10.

KunalKathrotia avatar May 11 '20 05:05 KunalKathrotia

try adding android:requestLegacyExternalStorage="true" in your manifest file. that fixed for me, was happening because of new scoped storage introduced in android 10.

It did not work for me. Still facing the issues on mi A3 and motorola one power

brjichkar avatar May 20 '20 06:05 brjichkar

I found a solution to this issue. Try adding this line: Uri imageuri = data.getData();

Add above line in onActivityResult() method and pass imageuri as an argument:

CropImage.activity(imageuri) .setGuidelines(CropImageView.Guidelines.ON) .setAspectRatio(1, 1) .start(this);

taneshgupta avatar Jun 11 '20 12:06 taneshgupta

@InLearningPhase Which device did you test this with? For me resultCode is always RESULT_CANCLED

joseph-acc avatar Jul 09 '20 21:07 joseph-acc

please check this

Canato avatar Nov 16 '20 21:11 Canato

Hey!

I start a new project to handover this library https://github.com/CanHub/Android-Image-Cropper

The ideia is that we keep improving because this project don’t have updates since 2018 Hope I can count with your help.

Open to contribute, next pieces of work will be Android 11 permissions, refactor into Kotlin and ActivityContract

Canato avatar Nov 27 '20 16:11 Canato