title: How to Add a day in Date Android
body: <p>In my App I have a Sync button that runs a service whenever user wishes to. It saves the date and time when the button is pressed. I want to run that service after every 24 hours of the time it was last sync. For eg. If I pressed the Sync button at "Fri Jan 15 00:00:00 GMT+05:30 2016"(1st date) it should add 24 hours to it to become "Sat Jan 16 00:00:00 GMT+05:30 2016"(2nd date) and then whenever I open any screen of my app, it should check the 2nd date with the current date and if it found that the dates are equal or current date is greater than the 2nd date, it should run that service automatically.
  I'm getting problem in adding 24 hours to the synced date and comparing it with current date. What should be the solution?</p>