Wake the device up when app prompts user

后端 未结 3 977
挽巷
挽巷 2020-12-18 12:15

I\'m using handler to repeatedly prompt user for an input every e.g. 5 minutes. When the device goes into sleeping mode and screen is locked, how can I wake the device up wh

3条回答
  •  一个人的身影
    2020-12-18 12:18

    Normally wakelock doesnt actual turn on the screen. So you should get the wake lock with

    ACQUIRE_CAUSES_WAKEUP

    as an additional flag.

提交回复
热议问题