I want to develop an app in which i will sync data between app & server.as of now i enter some data to app & save it locally when it is saved in sqlite then i send the same data to server.In this way i can view the data even if there is no internet connection.But now issue is user can also update or update the data from server end.So every time i should get the latest data.
1.Should i run a service which check every time number of records on sqlite & server.If there is difference then show latest data.
Please tell the solution.