15 Jun 2012 17:37
Using HttpClient in Desktop and HttpURLConnection in Android
yccheok <yancheng.cheok <at> gmail.com>
2012-06-15 15:37:17 GMT
2012-06-15 15:37:17 GMT
Hi, in desktop development environment (Java SE), we are encouraged to use Apache HttpClient over HttpURLConnection, as it offers - Higher level API. Hence, easier to use - Richer features Please refer to http://stackoverflow.com/questions/643730/httpclient-vs-httpurlconnection?rq=1 However, for Android, they seem to recommend HttpURLConnection over Apache HttpClient. http://android-developers.blogspot.com/2011/09/androids-http-clients.html I was confused then. Is that we will then loss the convenient of a easier to use API? For me, I have been a happy user of HttpClient for several years. Hence, I cannot convince myself of switching to HttpURLConnection in Android platform. I was wondering, anyone of you had used both before in Android? Mind to share out their pros and cons? Which one would you actually recommend? Thanks. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers <at> googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe <at> googlegroups.com(Continue reading)
RSS Feed