Android中http交互是用HttpUrlConnection还是AndroidHttpClient好呢?

来源:互联网 发布:mac如何将两个窗口 编辑:程序博客网 时间:2024/06/12 01:09

下面是作者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 use HttpURLConnection; it is where we will be spending our energy going forward.


原创粉丝点击