Skip to content
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 10 external storage access error #22

Closed
p-shapovalov opened this issue Jan 22, 2024 · 0 comments
Closed

Android 10 external storage access error #22

p-shapovalov opened this issue Jan 22, 2024 · 0 comments

Comments

@p-shapovalov
Copy link
Contributor

You can see a similar bug here flutter/flutter#41459
The solution is to put the result files in the application cache instead of external storage
I've pushed a quick fix here https://github.com/p-shapovalov/hl_image_picker/tree/android-10-quick-fix, I take it from https://github.com/flutter/packages/blob/main/packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/FileUtils.java
But for now I don't have time to implement it correctly, so I just replace image compressing with moving it into app cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant