-
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
Fixed scoped storage issue on Android 10 #736
base: master
Are you sure you want to change the base?
Conversation
@huiseopLee this fix isn't merged to the project yet. You can try my fork which has the Android 10 fix: https://github.com/ravindu1024/Android-Image-Cropper. Just try the latest via jitpack with : |
sorry but it still doesn't work. |
I am wondering why adding a file provider to the Manifest file solves the problem. As it is mentioned here, it should be enough to use a regular intent with ACTION_GET_CONTENT. Do you know what exactly causes the gallery to be hidden for some devices on Android 10? |
@ravindu1024 Thank you so much it works!!! Will it also work with older versions? |
On a Pixel 4XL - Android R beta, the 'photos' app is a visible option. I don't believe there are any other 'gallery' apps that come stock with it. The alternative repo didn't work for me either. It still returns a null uri and crashes. |
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 |
Good idea @Canato. This fix however will become redundant when you implement Android 11 permissions. |
Fixed issue where the gallery options were not showing up in the image source picker on Android 10 devices. This is due to the new scoped storage requirements of 10.
Limitations - unable to show gallery types on the picker. I could only manage to show a single file picker.
Test - run "quick start" on an Android 10 device. The gallery intents are not shown without this fix.