My question is the following, I'm developing an application that has an access to a WebService, but I think it's important to save some internal data in the application, for example, if the user logs in but has no internet, , so I need to make sure that when the guy is online he gets all the new information in the WebService and adds it to SQLite, but also when he comes online if he has new things in SQLite he updates in WebService.
An example to understand, has a list of students of computer course, and I make the call through an application through WebService, but the internet has fallen, but I still need to make the call, okay. I made the call, but when I'm on the internet, I need this call to be sent to the WebService server, so that the owners of the school can see it. (It's just an example).
How to do this? Is there a tutorial that teaches me something similar? What direction of studies do I need to go to do this? What methods?