Confusion about WakefulBroadcastReceiver
I've been studying WakefulBroadcastReceiver from this link : https://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver.html I have few confusions regarding this: Does this receiver ensures that you'll receive the broadcast even when the device is in sleep mode? (I think no, it just keeps the device awake after receiving the broadcast until a call to completeWakefulIntent() is made.) The documentation illustrates the use of intent service within the receiver and after the completion of work, a call to completeWakefulIntent is made. CODE : import android.app