当前位置: 动力学知识库 > 问答 > 编程问答 >

android - drop wakelock in WakefulBroadcastReceiver that does not start a Service

问题描述:

I registered a WakefulBroadcastReceiver that gets called at some time and based on the content of the broadcast decides to start a service to process the intent or not.

My question is: Is there a wakelock registered even if the startWakefulService is not called? If so, how do I release the wakelock again?

网友答案:

Is there a wakelock registered even if the startWakefulService is not called?

No, there is not, as you can tell by looking at the WakefulBroadcastReceiver source code.

分享给朋友:
您可能感兴趣的文章:
随机阅读: