I know how to do this in other programming languages, however, when looking for examples of how to send data using POST
in Android
, I only find examples that use discontinued classes, such as:
-
HttpClient
-
HttpPost
-
HttpResponse
-
HttpEntity
-
EntityUtils
-
NameValuePair
-
BasicNameValuePair
I'm looking for a way to send json
via POST
to a Android
application and retrieve them in an application with servlets. The servlets part is not a problem. I can retrieve a json and treat it using Google's Gson lib.