简体   繁体   中英

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

您只能写入自己应用程序的缓存目录:使用context.getCacheDir()获取其位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM