-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Android 11 Pixel 2 #783
Comments
try this : added android:requestLegacyExternalStorage="true" in AndroidManifest.xml <application |
android:requestLegacyExternalStorage="true" does no longer work from Android 11. If I set "targetSdkVersion = 29", I can see image source selection, and after then picked camera option, I can not see taken picture file. |
To followup on this I was able to get the error when coming back from taking a picture. The image selection works fine. java.lang.RuntimeException: Failed to load sampled bitmap: |
I can reproduce it in my physical Google Pixel 4 device, and also in Android emulator of Pixel 3a, on API 30. When debugging, seems like inside the function getCaptureImageOutputUri() in CropImage.java, Not really sure whether is API related but some folks on stackoverflow says that:
Which could be why Pixel devices are having issues. |
please check this |
Reading writing images from external memory is not allowed in android 11. If someone find a solution please do share. |
Hey! I start a new project to handover this library The ideia is that we keep improving because this project don’t have updates since Open to contribute, next pieces of work will be Android 11 permissions, refactor into Kotlin and ActivityContract |
Did you find any solution for this ? I am getting same issue for Camera selection, |
@jagdeepmohd |
In Android 11 |
@baonq-2356 Thanks for reply. Issue is resolved with new library. |
@jagdeepmohd i try with library: https://github.com/CanHub/Android-Image-Cropper version 2.1.1 then get that error |
sorry, i has confused, this isn't your library issue ^^ |
If something is wrong or odd on the CanHub lib please open a issue so we can tackle it ;) |
I have a working app on most devices. It's been out for a few years. I recently upgraded the phone to Android 11 and the API to 29. I am noticing some behavior with the camera. When I use the camera and then fire the start cropping, there is no image in the CropActivity.
Has anyone experienced this and aware of the fix?
The text was updated successfully, but these errors were encountered: