Exception 'open failed: EACCES (Permission denied)' on Android

前端 未结 30 1590
[愿得一人]
[愿得一人] 2020-11-22 00:59

I am getting

open failed: EACCES (Permission denied)

on the line OutputStream myOutput = new FileOutputStream

30条回答
  •  遇见更好的自我
    2020-11-22 01:46

    I had the same problem and none of suggestions helped. But I found an interesting reason for that, on a physical device, Galaxy Tab.

    When USB storage is on, external storage read and write permissions don't have any effect. Just turn off USB storage, and with the correct permissions, you'll have the problem solved.

提交回复
热议问题