Accessing the /cache directory in the Android filesystem

28.9k views Asked by At

How can I write a file in the /cache directory? I continue to get a FileNotFoundException (Permission denied).

Someone told me about the android.permission.ACCESS_CACHE_FILESYSTEM but i can't find it in the Android reference.

Any help will be appreciated.

EDIT: i'm using level 13 apis

1

There are 1 answers

4
clemp6r On

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