BroadcastReceiver Vs WakefulBroadcastReceiver
There is only one difference between BroadcastReceiver and WakefulBroadcastReceiver. When you receive the broadcast inside onReceive() method, Suppose, BroadcastReceiver : It is not guaranteed that CPU will stay awake if you initiate some long running process. CPU may go immediately back to sleep. WakefulBroadcastReceiver : It is guaranteed that CPU will stay awake until you … Read more