How to schedule an alarm so that the intent is broadcast everytime the date changes?

Posted by rogerstone on Stack Overflow See other posts from Stack Overflow or by rogerstone
Published on 2011-02-27T07:21:27Z Indexed on 2011/02/27 7:24 UTC
Read the original article Hit count: 230

Filed under:
|
|

I want to schedule an alarm which throws an intent when the date changes.

I know that this would do this the job

alarms.setRepeating(AlarmManager.RTC_WAKEUP,triggerAtTime, interval,alarmIntent);

But what is confusing me is what to put in the triggerAtTime and the interval.It says System.currentTimeMillis() timebase.

I might be installing the app on any day so the TriggerAtTime should be midnight of that day and the interval would be 24 hours from there on.

How can I acheive this.Can someone tell me what to put in TriggerAtTime and interval in the required format.

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about android