I need to optimize the speed of data loading in my app.
I remembered that according to the post on the Google Developers blog HttpUrlConnection is advised to be faster and more lightweight.
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.
But the thing is that a lot of people here recommend ApacheHTTPClient but Google says that HttpUrlConnection is better.
Which http client would you recommend to improve overall speed? Let's assume for that question that complexity of code which I have to write doesn't matter.
I think it's pretty clear from the android-developers blogpost. When it comes to Android you can't really get a better authority than Google themselves. So, yes, it's true ;)
"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."
What part of that has you uncertain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With