您的位置:首页 > 理论基础 > 计算机网络

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

2011-11-02 13:29 302 查看
下面是作者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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息