Picker no longer includes Photo app on Android 10
The code below works with SDK < 29, but on Android 10 phones, even when targeting SDK 28, it will no longer show the Photo app, instead only showing Camera and generic File handling applications.
This is on a Pixel 3, but you should be able to repro on any Android 10 device with the following code:
CropImage.activity()
.setGuidelines(CropImageView.Guidelines.OFF)
.setFixAspectRatio(true)
.setCropShape(CropImageView.CropShape.OVAL)
.start(activity)
@duncancarroll same issue is there on Oneplus7Pro
I have also facing this issue on pixel 3 XL device but on emuletor it's working fine. Any solution
Not working on Android 10!
Same issue here, any updates?
Maybe it was fixed, but I can see the photo app on android 10 api 29
+1
Any update on this?
+1
+1
+1
+1
+1
whoever encounters this issue please add more details so someone can replicate and hopefully fix it. I wasn't able to replicate.
I am facing the same issue with every Android 10 device. Crop intent is not visible through the app. Did anyone get a solution or found a workaround for this?
@abhilashmaddukuriFresnoState can you post some logs? or maybe you can debug and see where does it stop
me too facing the issues on mi A3 and motorola one power, tried solution of android:requestLegacyExternalStorage="true" but it does not work. Has anyone able to resolve it?
@abhilashmaddukuriFresnoState can you post some logs? or maybe you can debug and see where does it stop there is nothing in log related to Crop project.
whoever encounters this issue please add more details so someone can replicate and hopefully fix it. I wasn't able to replicate. My Mi A3 device got updated to android 10, In android 10 , when I run my app, Photos option is not displaying but for android 9 and below , I am able to see Photos option. In Android 10 emulator though I am able to see gallery option, but on real device with OS 10, such as Mi A3 and motorola one power there is not option of gallery/photos. Only Option are 1. Camera 2. File Explorer. @Filip Luchianenco maybe this can help ? https://medium.com/@pednekarshashank33/android-10s-scoped-storage-image-picker-gallery-camera-d3dcca427bbf
This PR has the fix. It's not merged in to the project yet, but he has instructions in the PR to include his forked library via Jitpack so you can get your apps working again.
https://github.com/ArthurHub/Android-Image-Cropper/pull/736
please check this