Android可以在BroadcastRceiver中处理广播时进入深度睡眠状态吗? 是否需要尽早在BroadcastReceiver onReceive方法中创建部分唤醒锁,或者可以在onReceive方法中的任何位置创建它(并传递给服务)?Android BroadcastReceiver和深度睡眠
AlarmManager文档状态The Alarm Manager holds a CPU wake lock as long as the alarm receiver's onReceive() method is executing. This guarantees that the phone will not sleep until you have finished handling the broadcast.
但是其他广播呢?或者这只取决于广播的发送者?
如果设备已经睡着了,它甚至可能不会醒来接收广播:请参阅http://stackoverflow.com/questions/16254420/broadcastreceiver-behavior-when-phone-is-asleep – 2013-05-04 22:31:05