How to schedule an alarm so that the intent is broadcast everytime the date changes?
- by rogerstone
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