Skip to content Skip to sidebar Skip to footer

Write Application Data On Private Directory On Sdcard Android 4.4 And Above

There are many questions about this topic, but I cannot find any answers for my corrective example. I'm using Samsung galaxy S5 run android 4.4, which is limited for storage The of

Solution 1:

If getExternalFilesDir(null) is returning somewhere different to /storage/extSdCard/Android/com.myapp.example/files, then I would think that is why it is giving you access permission errors. The only place on the SD card you can write to without permissions is the directory returned by getExternalFilesDir()

Since you say the directory returned by getExternalFilesDir(null) is not acceptable, I would suggest adding the WRITE_EXTERNAL_STORAGE permission to your manifest.

Solution 2:

Your app specific directory should be /storage/extSdCard/Android/data/com.myapp.example/files and not /storage/extSdCard/Android/com.myapp.example/files

Post a Comment for "Write Application Data On Private Directory On Sdcard Android 4.4 And Above"