How can I use ACQUIRE_CAUSES_WAKEUP
? ACQUIRE_CAUSES_WAKEUP
must be used with another wakelock or you risk an error:
java.lang.IllegalArgumentException: Must specify a valid wake lock level.
However, FULL_WAKE_LOCK
, SCREEN_DIM_WAKE_LOCK
, and SCREEN_BRIGHT_WAKE_LOCK
are all deprecated, and ACQUIRE_CAUSES_WAKEUP
doesn't work with PARTIAL_WAKE_LOCK
"Cannot be used with PARTIAL_WAKE_LOCK."
So does that mean that ACQUIRE_CAUSES_WAKEUP
is effectively useless?
You can use it like this: