我想跟踪我的应用程序的数据使用量,但要做到这一点,我需要能够得到一个 HttpUriRequest
和的Htt presponse 。简单地获取的 HttpEntity
是远远不够的,因为无论是请求和响应有更多的数据被传输(头,参数,可以传送实际的URL等)的大小。那么,有没有办法找到数据的正在被传送两种方式全款?
i would like to track the data usage of my app, but to do that, I need to be able to get the full size of an HttpUriRequest
and HttpResponse
. Simply getting the size of the HttpEntity
isn't enough because both the request and response have more data being transferred (headers, params, the actual URL being transmitted, etc). So, is there a way to find the full amount of data that's being transmitted both ways?
感谢。
如果您只想指标事后你可以提供你自己的合适 ClientConnectionManager
实现子类并获取相关的 HttpConnectionMetrics
上一篇:自动选择里面的ListView复选框 - 机器人机器人、复选框、里面、ListView
下一篇:什么是Android的依赖呢? ,出现了ClassNotFoundException从构建路径中删除路径、出现了、Android、ClassNotFoundException