sha*_*ter 6 android caching okhttp
在Android上,我应该如何File为com.squareup.okhttp.Cache构造函数创建参数?它似乎Context给你很多选择:
new File(context.getCacheDir(), "HttpResponseCache")new File(context.getExternalCacheDir(), "HttpResponseCache")context.getDir("HttpResponseCache", Context.MODE_PRIVATE)只是想知道什么是最佳实践.谢谢!