WakeLock Mechanism
<p>In my app there is a Broadcast Receiver which is called by an alarm with RTC_WAKEUP at specific times. This receiver first acquire a partial lock so it doesn't terminate and then checks a condition and if it's true start an activity which turns the phone completely on by a acquiring a full lock and unlocking keyguard. </p>

<p>After a little test and trial I found out lifecycle of Broadcast receiver ends before starting the activity, and as soon as it ends the partial lock is released. </p>

<ul>
<li><p>So I wonder if the device is sleep, would the activity get started so
it can acquire full lock? </p></li>
<li><p>Or as soon as the broadcast receiver ends the device goes back to
sleep and start of activity is postponed to when it wakes again?</p></li>
</ul>
