Access to the / cache directory in the Android file system

How to write a file in the /cache directory? I keep getting FileNotFoundException (Permission denied) .

Someone told me about android.permission.ACCESS_CACHE_FILESYSTEM , but I can not find it in the Android help system .

Any help would be appreciated.

EDIT: I am using level 13 apis

+6
source share
1 answer

You can only write to the cache directory of your own application: use context.getCacheDir() to get its location.

+18
source

Source: https://habr.com/ru/post/905504/


All Articles