Answer the question
In order to leave comments, you need to log in
How to organize communication between client (Android) and server (Java)?
Good day.
There is a task: to figure out a client-server application with a server part on a PC written in Java, and a client part on an Android device.
The client sends a request for data, the server receives the request and sends the requested data.
Based on the task, execution in the form of frequent surveys is required.
What is the best way to organize communication between the client and the server? And literature, if possible.
Answer the question
In order to leave comments, you need to log in
The simplest thing is to write a REST API on the server, give the client data in JSON via HTTP.
You can quickly throw in a server application using this one , for example. You can request anything over HTTP in an Android application using Volley.
Based on the task, execution in the form of frequent surveys is required.
import java.net.InetAddress;
import java.net.Socket;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question