Process intent when device is unlocked
<p>I would like to start my activity when some broadcast is received:
1. if device is on - immediately (no problem here)
2. if device is off - when device comes on (and is unlocked)</p>

<p>Second point I don't know how to implement.
I was looking at PendingIntents and AlarmManager, but this doesn't account for device lock.
I would like to somehow "qeueu" intents and process them once device wakes AND is unlocked.</p>

<p>Can someone please point me to the right direction?</p>
