Answer the question
In order to leave comments, you need to log in
How to correctly build the client-server architecture of the application?
Tell me what you can read on this topic. How to make an Android application that will communicate with the server?
Answer the question
In order to leave comments, you need to log in
Despite the fact that many new convenient technologies have appeared today, the Service + ContentProvider + CursorLoader bundle I like most of all
https://dl.google.com/googleio/2010/android-develo...
Service can be replaced with something familiar and ready , not the essence
For the implementation of requests, I like the retrofit + gson bundle I
also recommend looking towards rxjava
The session dialog initiator is always the server, regardless of who wants to send the data. If there was no network - we save the status and the message for the next attempt, BUT we always check the lifetime of TOKEN'a: LIMIT.
General view of the process:
time1
TOKEN: request to the server for a token.
QUERY: sending data.
WORK: data processing
time2
IF (time2-time1>LIMIT) GOTO TOKEN
ELSE GOTO QUERY
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question