[android-developers] Re: HttpURLConnection or HttpClient

2010-09-16 Thread Indicator Veritatis
When you say 'speed', do you mean development time or runtime? If the former, Apache's wins. If the latter, the speed is going to depend much more heavily on what you the programmer write (regardless of which package you choose) and on network conditions at the time you run. That said, lots of

[android-developers] Re: HttpURLConnection or HttpClient

2010-09-15 Thread cindy
Thanks for all the reply. On Sep 15, 3:39 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: You can do that with URLConnection too of course, although it takes a little bit more effort to make it work. Best regards, Filip Havlicek 2010/9/16 Frank Weiss fewe...@gmail.com For simple

[android-developers] Re: HttpURLConnection or HttpClient

2010-09-15 Thread Indicator Veritatis
Yes, we know why. Because Apache's HttpClient (and other closely assoc. classes in the org.apache.http package) is a much better API than Sun's own HttpUrlConnection (and the rest of java.net's Http support). You can do far more work with less code, and it reads much better too. So, for example,

[android-developers] Re: HttpURLConnection or HttpClient

2010-09-15 Thread cindy
How about speed? which one is fast? On Sep 15, 5:59 pm, Indicator Veritatis mej1...@yahoo.com wrote: Yes, we know why. Because Apache's HttpClient (and other closely assoc. classes in the org.apache.http package) is a much better API than Sun's own HttpUrlConnection (and the rest of java.net's