its not a good practice to downgrade your sdk,but on a API23 json parsing using HTTPCLIENT doesnt work.it says that its removed in API 23.What should i do to implement JSON paring for login webservice in android studio.if not how to change the API level in android studio.i tried to change in Gradle.build but couldnt solve the issue.Thanks in advance..
Asked
Active
Viewed 82 times
0
-
Json parsing?? how about using the regular JSONObject class – Rod_Algonquin Feb 18 '16 at 14:38
-
I recommend parsing with [Jackson library](http://wiki.fasterxml.com/JacksonDataBinding). You can transform your plain old java objects (POJOs) with some annotations to JSON and vice versa. – schrieveslaach Feb 18 '16 at 14:40
-
You want to communicate with the server, but can't use HttpClient, right? – Yash Feb 18 '16 at 14:40
-
Please reframe your question according to your needs – Yash Feb 18 '16 at 14:41
1 Answers
0
You should use HttpURLConnection library instead of HttpClient. Refer to the documentation : http://developer.android.com/reference/java/net/HttpURLConnection.html
Yash
- 5,225
- 4
- 32
- 65