Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in API Level 29 (Android 10) #742

Open
SaurabhGaddelpalliwar opened this issue Feb 12, 2020 · 8 comments
Open

Not working in API Level 29 (Android 10) #742

SaurabhGaddelpalliwar opened this issue Feb 12, 2020 · 8 comments

Comments

@SaurabhGaddelpalliwar
Copy link

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

@friederikewild
Copy link

Sounds related to this unsolved issue #721

@priyankaandroid
Copy link

@SaurabhGaddelpalliwar Did you find any solution ?

@KunalKathrotia
Copy link

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

@brjichkar
Copy link

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

@taneshgupta
Copy link

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);

@joseph-acc
Copy link

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

@Canato
Copy link

Canato commented Nov 16, 2020

please check this

@Canato
Copy link

Canato commented Nov 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants