现在的位置: 首页 > 综合 > 正文

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

2012年02月06日 ⁄ 综合 ⁄ 共 395字 ⁄ 字号 评论关闭

下面是作者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.

抱歉!评论已关闭.