摘要:
2.2以上的版本下载网络资源不完整无法更新。HttpURLConnection.getContentLength()获取的size跟下载下来的file的legth不等。原因是:HttpURLConnection跟服务交互采用了"gzip"压缩。所以下载的fileLegth >HttpURLConnection.getContentLength().参考api:By default, this implementation ofHttpURLConnectionrequests that servers use gzip compression. SincegetCon 阅读全文
posted @ 2014-01-02 11:04
ConquerMobileApp
阅读(671)
评论(0)
推荐(0)

浙公网安备 33010602011771号