title: Performing a task everyday using TimerTask doesn't work for the next day.(with other problems)
body: <p>I have a <code>TimerTask</code> that updates a few tables everyday at specific times(not one task per day, different tasks at different times in a day). I get a few time periods from a database and check if the current time is equal to one of the times in the database when the <code>run()</code> of <code>TimerTask</code> is called and perform the respective task for respective time(time from database which is equal to current time)</p>
  
  <p>I think it's not working for the next day because I set the time(which I obtain from database) for the timer when the service starts. The next day when the timer is supposed to do the task and checks with the current time it checks with the previous day's time(the day service is started and time is set for <code>TimerTask</code>) and does not do the task. I should start the <code>Service</code> everyday to set the time(which is obtained from database to check with current time).</p>
  
  <p>How do I start the service everyday at specific time so that the time to be checked with current time is set everyday.</p>
  
  <p>I can try to schedule to do the tasks everyday 24 hours from the day service is started, but sometimes I have to change the start date and for that the service should be started again and I dont know if a service will run for 24 hours.</p>