Android 在 BroadcastRceiver 中处理广播时可以进入深度睡眠吗?是否需要在 BroadcastReceiver 的 onReceive 方法中尽早创建部分唤醒锁,或者可以在 onReceive 方法中的任何位置创建(并传递给服务)?
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.
但是其他广播呢?或者这仅取决于广播的发送者?