Skip to content
Ilya Konovalov edited this page Jul 21, 2013 · 3 revisions

AlarmManager is a component mimicking behavior of the Android AlarmManager and is different in that it is triggered based on JTT ticks.

To implement this feature there has to be a way to translate JTT into integer value that are different for all JTTs on a period long enough. Currently there is mapping JTT->ticks since last sunset which is only good for one day.

Once such consistent numbering is implemented, it will be possible to keep the (relative) list of scheduled alarms (PendingIntents) in the Clockwork service and trigger them as the time passes.

Simplest approach is to add JDN*TICKS_PER_DAY to all JTT ticks numbers. This is guaranteed to make all JTTs consistent within one geographical area.

Clone this wiki locally