Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing the /cache directory in the Android filesystem

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

like image 598
lorenzoff Avatar asked Jan 09 '12 09:01

lorenzoff


1 Answers

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

like image 149
clemp6r Avatar answered Oct 20 '22 02:10

clemp6r