Answer the question
In order to leave comments, you need to log in
What are the ways to organize the "communication" of the android application with the server?
Good day.
I need to send requests to the server, process them and, if necessary, write them to the database.
All my google jutsu was enough for is that you can send json objects via GET or POST string using HttpURLConnection, are there any other ways? And which one is better to use?
Answer the question
In order to leave comments, you need to log in
json in the post body and in the get response. Don't use HttpUrlConnection, use Retrofit+OkHttp + one of the serializers (Moshi, Gson, Jackson).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question