腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(72)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
使用
HttpResponseCache
我想在我的应用程序中使用
HttpResponseCache
,我已经成功地安装了它,它写入了缓存的内容,但实际上我不知道如何在HttpURLConnection中使用它。
浏览 0
修改于2014-02-05
得票数 0
2
回答
com.squareup.okhttp.
HttpResponseCache
无法解析符号“
HttpResponseCache
”
我正在尝试在Android Studio中编译一个Android项目,该项目导入:我收到一个错误“无法解析符号'
HttpResponseCache
1.3.8'compile 'com.squareup.okhttp3:okhttp:3.1.2' 要使用
HttpResponseCache
浏览 6
提问于2016-02-19
得票数 0
1
回答
Android
HttpResponseCache
不工作
我试图利用
HttpResponseCache
,但没有运气使它工作。url Log.e("Test", "Req count: " + cache.getRequestCountshell@maguro:
浏览 2
提问于2014-03-18
得票数 2
回答已采纳
1
回答
加密OkHttp的
HttpResponseCache
但是,这些信息是私有的,服务器将托管在Heroku等设备上,因此我希望对
HttpResponseCache
缓存的文件进行加密,这样如果机器受到破坏,它们就不会产生任何信息。我的计划是在
HttpResponseCache
周围创建一个包装器,它接受一个秘密密钥--这实际上是api键字符串的一半的散列。这将用于AES-加密
HttpResponseCache
使用的缓存内容和密钥。听起来合理吗?
浏览 3
提问于2014-03-13
得票数 0
回答已采纳
2
回答
HttpResponseCache
没有在Android中工作
我已经成功地在我的应用程序
HttpResponseCache
中使用了,但是当我的手机升级到Lollipop时,我意识到
HttpResponseCache
现在永远不会被“击中”,总是执行网络请求。http"); Class.forName("android.net.http.
HttpResponseCache
HttpURLConnection mHttpConn = null; InputS
浏览 2
提问于2015-04-08
得票数 4
1
回答
Android
HttpResponseCache
不工作- FileNotFoundException
File httpCacheDir = new File(getExternalCacheDir(), "http"); .invoke(null, httpCacheDir, httpCacheSize); Log.i("_INFO", "
HttpResponseCache
在所有HTTP调
浏览 2
修改于2014-10-22
得票数 1
回答已采纳
1
回答
HttpResponseCache
不缓存文件
我正在尝试缓存这个文件:使用
HttpResponseCache
的。基本上,我调用getFileFromUrl函数两次,因此第一次从internet获取资源,第二次从缓存获取资源。
浏览 3
修改于2013-11-01
得票数 3
3
回答
HttpResponseCache
不清除旧文件?
我在安卓系统中找到了
HttpResponseCache
类。它正在工作,但是它是,而不是,正如我所期望的那样。 我的测试用例是一个缓存多个图像的AsyncTask。毕竟,我发现
HttpResponseCache
文档很少。我遇到了,但这似乎更少文档化,即使它提供了我所需要的东西(请求队列和优先级.)。您用来缓存什么?欢迎访问库、教程的链接。
浏览 8
修改于2014-05-22
得票数 1
回答已采纳
1
回答
如何使用已安装的
HttpResponseCache
我遵循并安装了一个
HttpResponseCache
,在我的应用程序的onCreate()方法中包含了以下代码: File httpCacheDir = new File(context.getCacheDir(), "http");
HttpResponseCache
.install(httpCacheDir
浏览 2
提问于2014-06-25
得票数 1
回答已采纳
1
回答
Android
HttpResponseCache
和Authorization请求头部
我正在尝试让
HttpResponseCache
缓存对包含"Authorization“头的请求的响应。我之所以包含这个头文件,是因为我调用的API使用基本身份验证。是否有任何已知的方法绕过此问题,或者在HttpUrlConnection /
HttpResponseCache
中覆盖此行为? 提前感谢!
浏览 8
提问于2015-04-22
得票数 0
2
回答
为什么对
HttpResponseCache
使用反射?
在 of
HttpResponseCache
中有一节: 这个类是在Android4.0(冰淇淋三明治)中添加的。我会使用以下模式: // do something here那么为什么这不是
HttpResponseCache
当以这种方式使用反射时,
HttpResponseCache
实际上在ICS下面工作吗? 编辑:我这里没有一个旧的安卓设备,我的模拟器完全拒绝启
浏览 3
修改于2017-05-23
得票数 0
回答已采纳
1
回答
使用
HttpResponseCache
的Gridview性能
我正在使用网格视图来显示数百张图片(甚至可能是几千张)。图像位于服务器上,我使用缓存图像。我遇到的问题是,当我在网格视图中向下滑动时,回收的视图在最终确定正确的图像之前,每个子视图显示3个或更多图像。这似乎是回调方法返回所有请求图像的结果。当向上/向下滚动时,如何才能使网格视图不会出现这种巨大的活动。public View getView(int position, View convertView, ViewGroup parent) {
浏览 0
修改于2013-01-06
得票数 1
回答已采纳
1
回答
HTTPResponseCache
商店但从不点击
我正在努力实现
HttpResponseCache
以减轻这个净负载。httpCacheDir = new File(this.getCacheDir(), "http");
HttpResponseCache
.install= null) {} httpsConnection.disconnect();
HttpResp
浏览 2
提问于2015-12-02
得票数 1
回答已采纳
1
回答
HttpResponseCache
不缓存没有Content-Length报头的urls
使用HttpURLConnection和
HttpResponseCache
的常用安卓示例,我创建了一个,它调用两个urls,两次。和。有没有办法强制
HttpResponseCache
在内容长度丢失的情况下缓存url?另外,不缓存没有内容长度的urls背后的逻辑是什么?
浏览 0
修改于2017-09-13
得票数 0
1
回答
使用
HttpResponseCache
使应用程序崩溃
我试图使用
HttpResponseCache
缓存网络数据,但是当我将安装缓存代码放入OnCreate和OnPause方法时,应用程序就会崩溃。我使用了的代码。编译错误如下所示。context.getCacheDir(), "http");
HttpResponseCache
.install
HttpResponseCache
cache =
HttpRes
浏览 4
修改于2016-01-09
得票数 3
回答已采纳
2
回答
HttpResponseCache
'PUT‘请求方法未缓存
我为服务器请求使用,为PUT请求使用缓存response.But响应没有缓存,有人知道原因吗?缓存只用于POST和GET方法吗?
浏览 0
提问于2014-02-28
得票数 0
3
回答
我需要一个安卓系统中的
HttpResponseCache
示例
嗨,我正在尝试使用在Android4中引入的
HttpResponseCache
。谁能给我举一些使用
HttpResponseCache
的工作代码的例子。up"); Log.v(TAG, "android.net.http.
HttpResponseCache
Using com.integralblue.
httpresponsecache
.HttpHttpResponseCache.
浏览 4
修改于2013-11-01
得票数 12
回答已采纳
1
回答
使用
HttpResponseCache
.get时使用哪些标头
long httpCacheSize = 10 * 1024 * 1024; // 10 MiB catch (Exception httpResponseCacheNotAvailable) { } 然后试着这
浏览 2
提问于2014-10-08
得票数 3
1
回答
将LRU图像缓存与
HTTPResponseCache
结合用于磁盘和内存缓存
.
HttpResponseCache
cache =
HttpResponseCache
.getInstalled();
HttpResponseCache
cache =
HttpResponseCache
.getInstalled(); iflong HTTP_CACHE_SIZE_IN_BYTES = 1024 * 1024 * 1024; /&
浏览 6
修改于2017-02-22
得票数 3
回答已采纳
1
回答
FileNotFoundException在使用
HttpResponsecache
的脱机缓存时
10 MiB Class.forName("android.net.http.
HttpResponseCache
ps:上面,我说“可能使用散列函数”,因为我找不到com.android.okhttp.
HttpResponseCache
对象的实现( android.net.http.
HttpResponseCache
浏览 3
修改于2014-01-02
得票数 1
回答已采纳
第 2 页
第 3 页
第 4 页
点击加载更多
领券