title: Schedule a TimerTask at specific time once per day in a service in android
body: <p>I have a <code>TimerTask</code> object <strong>timerTask</strong>. My code is running but when service gets started initially, my timer task runs instantly before the specified time i.e. 3:30 PM, though I want it to run on 3:30 PM once per day only.</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  cal.set(Calendar.AM_PM, Calendar.PM);
  cal.set(Calendar.HOUR, 3);    
  cal.set(Calendar.MINUTE, 30);
  cal.set(Calendar.SECOND, 0);
  Date date = cal.getTime();
  timer.schedule(timerTask, date, 1000*60*60*24); // once per day
  </code></pre>