Android中http交互是用HttpUrlConnection还是AndroidHttpClient好呢?
16lz
2022-06-15
下面是作者Tim Bray给出的答案
Which client is best?
Apache HTTP client has fewer bugs on Eclair and Froyo. It is the best choice for these releases.
For Gingerbread and better, HttpURLConnection is the best choice. Its simple API and small size makes it great fit for Android. Transparent compression and response caching reduce network use, improve speed and save battery. New applications should useHttpURLConnection; it is where we will be spending our energy going forward.
更多相关文章
- Android(安卓)Studio遇到Failed to resolve: common问题
- android Paint 设置线宽setStrokeWidth()的单位
- Android中的文件存储练习
- Android(2017-2018)BAT面试题整理(Java篇,含答案)
- 学习笔记-Android单项选择效果实现
- Android多线程系统概述(sundy深入浅出)之进程和线程
- 《Android移动应用基础教程》(Android(安卓)Studio)(第二版)黑马教程
- 2020最新Android大厂面试真题大全(附答案)
- Android的GridView控件点击图片变暗效果