Suppose I use BroadcastReceiver to receive events (intentions) that wake up the phone, even if it is in deep sleep mode (for example, an incoming data packet on a socket or an incoming text message). Then I sent the data to the IntentService for processing. Should I use WakeLock?
If I do not use wakelock, can I be sure that the device will not go into sleep mode until the start queue of my service is empty (and therefore the service is stopped)? (Assume processing may take a long time).
If Wake Wake is needed, where and when should I create and use it, and when should I let it go? I would like to immediately release WakeLock after the service’s intent queue is empty.
Thank you in advance
CITBL source
share