When I first start the application requests permission Manifest.permission.READ_EXTERNAL_STORAGE
, I approve it, and try to get a picture of's Galleries. If you try to do something with a file, I get
java.io.FileNotFoundException:
/storage/emulated/0/Download/temporary_file.png: open failed: EACCES
(Permission denied)
After restart app, the permit is not requested again, because it is already confirmed, and everything works as it should, the files of the gallery normally gets.
Reproduced on the Nexus 5 c android 6.0 and 6.0.1
On the Nexus 6 working all ok.
Just did a test project, which reproduces the problem
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…