coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

External storage not writable #72

Open andrejvanderzee opened 9 years ago

andrejvanderzee commented 9 years ago

On Android 4.0.4, ZTE Blade III, external storage is not writable. The following method returns false:

static public boolean isExternalStorageWritable() { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { return true; } return false; }

Resulting in:

Caused by: java.io.FileNotFoundException: /sdcard/my_folder/test_file_name.png: open failed: EACCES (Permission denied)

On other test devices there was no problem. The permissions are set correctly, in particular: permission name="android.permission.WRITE_EXTERNAL_STORAGE

coomar2841 commented 9 years ago

Strange. What does the state return?

simonberglund commented 9 years ago

I can confirm this issue on Nexus 6.

Any solutions?