Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

WRITE_EXTERNAL_STORAGE not working on Oreo #215

Closed gcatak closed 5 years ago

gcatak commented 5 years ago

WRITE_EXTERNAL_STORAGE, this permission is not working on Oreo. I am creating images in a folder but for oreo it is not working when it is working for lower versions. How can I solve?

Version of the library

5.0.0

It gives this error:

W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Pictures/xx/yy.jpg (No such file or directory)

gcatak commented 5 years ago

Could you look this SO question, please?

https://stackoverflow.com/questions/52383849/java-io-filenotfoundexception-no-such-file-or-directory-error/52384223?noredirect=1#comment91713796_52384223

Serchinastico commented 5 years ago

Hi @gcatak,

This is an open source project so feel free to send us a PR fixing the issue and we will gladly merge it and release a new version.

But first, I recommend you to look to:

To see if the problem is in other libraries and not Dexter. I'm closing the issue until the bug is not proven to be in Dexter but feel free to reopen it if you find otherwise.

Thanks for reporting.