L
L
LoliDeveloper2021-08-04 16:57:35
Java
LoliDeveloper, 2021-08-04 16:57:35

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

1 answer(s)
D
Denis Zagaevsky, 2021-08-04
@LoliDeveloper

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 question

Ask a Question

731 491 924 answers to any question