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

Picker no longer includes Photo app on Android 10

Open duncancarroll opened this issue 7 years ago • 20 comments

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 avatar Oct 25 '19 19:10 duncancarroll

@duncancarroll same issue is there on Oneplus7Pro

ratheeshcn avatar Nov 06 '19 08:11 ratheeshcn

I have also facing this issue on pixel 3 XL device but on emuletor it's working fine. Any solution

shiv71 avatar Nov 09 '19 11:11 shiv71

Not working on Android 10!

MSalas95 avatar Dec 10 '19 13:12 MSalas95

Same issue here, any updates?

ClouddJR avatar Dec 17 '19 07:12 ClouddJR

Maybe it was fixed, but I can see the photo app on android 10 api 29

luchfilip avatar Dec 29 '19 02:12 luchfilip

+1

mat90c avatar Dec 30 '19 15:12 mat90c

Any update on this?

Nyariki avatar Feb 29 '20 05:02 Nyariki

+1

junaediwidjojo avatar Mar 07 '20 02:03 junaediwidjojo

+1

leocorder avatar Mar 25 '20 16:03 leocorder

+1

troubleshoooter avatar Apr 03 '20 12:04 troubleshoooter

+1

abdirahman108 avatar Apr 13 '20 20:04 abdirahman108

+1

ahmedshaban1 avatar May 04 '20 20:05 ahmedshaban1

whoever encounters this issue please add more details so someone can replicate and hopefully fix it. I wasn't able to replicate.

filipnbc avatar May 14 '20 04:05 filipnbc

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

filipnbc avatar May 15 '20 23:05 filipnbc

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?

brjichkar avatar May 20 '20 06:05 brjichkar

@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.

brjichkar avatar May 20 '20 06:05 brjichkar

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

brjichkar avatar May 20 '20 06:05 brjichkar

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

matthewkrueger avatar Jun 17 '20 19:06 matthewkrueger

please check this

Canato avatar Nov 16 '20 21:11 Canato