I want to send data to the server periodically, I\'m using background Service for that, but I want to send when the data got updated, and updated data I\'m getting
Service
The best option would be to persist the data on the hard drive (e.g. SharedPreferences, database, ...).
Activity got updated => persist to storage => invoke Service
The Service has to read the data from the chosen storage before sending the data.