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

前端 未结 30 1626
[愿得一人]
[愿得一人] 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:30

    I had the same problem on Samsung Galaxy Note 3, running CM 12.1. The issue for me was that i had

    
    

    and had to use it to take and store user photos. When I tried to load those same photos in ImageLoader i got the (Permission denied) error. The solution was to explicitly add

    
    

    since the above permission only limits the write permission up to API version 18, and with it the read permission.

提交回复
热议问题