android 如何实现清理本地数据缓存?
天蓬老师
天蓬老师 2017-04-17 17:29:57
0
4
532

rt,我想实现本应用的数据缓存记录,应该如何实现。在网上搜到的答案都只是告诉你一个清楚缓存的工具类,我不知道该如何在项目中具体使用这些工具类。能否指点一个正确的思路。谢谢

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
Peter_Zhu

/data/data/package/cache
/mnt/sdcard/Android/data/package/cache

Peter_Zhu

The cache of android applications is stored under the application's data/data/packagename/cache. If your own application can directly operate files

阿神

http://blog.csdn.net/wwj_748/article/details/42737607 See if this is helpful to you?

伊谢尔伦

There is a function to get the cache dir in the context, https://developer.android.com..., just delete all the files in the cache dir

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template