-
Notifications
You must be signed in to change notification settings - Fork 327
Pictures taken with camera dissapears in api29 (multimode not working with camera) #280
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
Comments
Another workaround is if you have WRITE_EXTERNAL_STORAGE permission This will revert to old working (for now) way |
Fixed my issue. Any word on an official fix? |
Thanks for this workaround. |
Thanks. It worked for me. Image Picker Version: 2.3.2 |
it does not work for me. Based on the log, the URI after scanning is null. it works in API 27. |
I have the code for Android Q, after watching and reading the docs, finally. I will raise a PR soon. |
use MediaStore to support Android Q
Should be fixed in |
master branch does not fix the problem for use with Android Q devices (Huawei P30 pro for example). |
Expected Behavior
When taking a photo with the camera I expect to be able to select it (multi mode)
Actual Behavior
After taking a picure i get returned to the image selection part and the new image is not to be found (its not found in gallery either).
Steps to Reproduce the Problem
.showCamera(true)
.folderMode(true)
.imageDirectory("mydirectory")
if I add .returnMode(ReturnMode.CAMERA_ONLY) then i get the image and can use it, but its not in gallery and this is a workaround since it won't work when you want multiselect
I think it's because on older api it is saved in
/storage/emulated/0/Pictures/myfolder/IMG_20200630_114736_962.jpg
and with new api (tested with and without requestlegacystorage)
/storage/emulated/0/Android/data/se.mypackagename.xxxx.debug/files/Pictures/myfolder/IMG_20200630_140814_772.jpg
I suspect there is a missing call to index the file or something?
Specifications
The text was updated successfully, but these errors were encountered: