- Receivers cannot perform long running operations!
- As per the docs, receivers are designed for short operations.
- However, the AlarmReceiver calls
findNextDueAlarm
, which is now a potentially heavy db operation
- the catch is that the phone might go back to sleep before we do our work so we need to grab a wake lock
- i.e, dueTime1 = 12pm, dueTime2 = 12:01pm, etc. and NOW = 12:05pm