Wake up app from sleep at set time

后端 未结 2 1241
渐次进展
渐次进展 2021-01-22 09:14

I want to send my app to sleep and then wake it up at set times. I have it going to sleep but not waking up.

This sets the wakelock:

private void setWake         


        
2条回答
  •  生来不讨喜
    2021-01-22 09:45

    as above. The problem was that I was using a broadcast receiver within the calling activity.

提交回复
热议问题