I am new to android studio, I have came to know that android is not supporting Apache HttpClient more. So What should I have to choose alternative for implementation of Android web services with JSON. Which API will be fit to target greater than 16 API level.
Asked
Active
Viewed 94 times
0
-
use HttpURLConnection instead. :) – xxx Aug 03 '16 at 05:12
-
most popular are volley ,retrofit though lot other are available depend upon – Pavneet_Singh Aug 03 '16 at 05:14
-
check this link http://stackoverflow.com/questions/29294479/android-deprecated-apache-module-httpclient-httpresponse-etc – Mr.7 Aug 03 '16 at 05:17
-
1How can I add HttpURLConnection library to my project. Will this only be enough for me to make Http (GET or POST) Request upon server for getting JSON Data? @HuyN – Muhammad Usman Aug 03 '16 at 05:26
-
@Usman This article is all you need :) http://stackoverflow.com/questions/4205980/java-sending-http-parameters-via-post-method-easily – xxx Aug 03 '16 at 05:27
-
Thanks! This topics really helped me. – Muhammad Usman Aug 04 '16 at 07:05
1 Answers
1
Use HttpURLConnection instead.
Or some libraries like:
Retrofit: http://square.github.io/retrofit/
Volley: https://developer.android.com/training/volley/index.html
OkHttp: http://square.github.io/okhttp/
Read this article about comparision: Comparison of Android networking libraries: OkHTTP, Retrofit, and Volley