private Api(Context context) {
try {
File httpCacheDir = new File(context.getCacheDir(), "http");
long httpCacheSize = 10 * 1024 * 1024; // 10 MiB
HttpResponseCache.install(httpCacheDir, httpCacheSize);
} catch (IOException e) {
Log.i("Api", "HTTP response cache installation failed:" + e);
}
}
Api.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:CampusFeedv2
作者:
评论列表
文章目录