I am using DefaultHttpClient
in my current app.
I read this article which states that the DefaultHttpClient
is deprecated: http://developer.android.com/reference/org/apache/http/impl/client/DefaultHttpClient.html
It points to this website: http://android-developers.blogspot.com/2011/09/androids-http-clients.html?m=1 which is too old and written in 2011.
I am going to drop using DefaultHttpClient
and follow this article which uses Apache’s HttpClient
: http://loopj.com/android-async-http/
I wonder if this is the right path to take when programming in 2015 targeting android API 19 and above.
An asynchronous callback-based Http client for Android built on top of Apache’s HttpClient libraries
, but wait... you already said that Apache’s HttpClient is deprecated so...? – Trinitytrinket