Android - Activation of the system key lock (aka lock screen)

前端 未结 5 2125
借酒劲吻你
借酒劲吻你 2020-12-31 12:33

I have to activate android\'s system key lock (the one you get when you press the power off/hang up button). See here:

5条回答
  •  旧时难觅i
    2020-12-31 13:04

    Digging through the Android source found WindowManagerService which seems to have a public method (startAppFreezingScreenLocked) for activating this. This may be a good place to start looking for your answer, as unfortunately it doesn't seem as though you can directly get a WindowManagerService object.

提交回复
热议问题