How would you connect them to the server "at the end of the day"? As a rule, what would you do in such a situation, a custom application is written on the device, which synchronized data whenever possible.
You can do this in various ways.
Firstly, you need to write a Service that sits and checks if it has the ability to connect to the web server (for example, you could just use the LAN connection and make a preference for the line that determined which server you wanted to synchronize with), and then sync this way.
This service can be controlled by Intent. You can also write a script that issued commands for adb that made the necessary transitions between the device (if it was connected via USB) in order to synchronize.
I would think that the best way to do this could be to โsynchronizeโ the activity in your application. This action may have a button that, when pressed, initiates synchronization with a remote client via the Internet (what, as you said, do you have, but how are you going to connect to it?).
source share