How to start a dialog (like alarm dimiss /snooze) that can be clicked without unlocking the screen

前端 未结 3 1847
我寻月下人不归
我寻月下人不归 2020-12-16 03:18

I dont want to permanently bypass keyguard, just for that moment .For example when a alarm is raised (eg wake up alarm) i can dismiss /snooze it whithout unlocking screen .I

3条回答
  •  一个人的身影
    2020-12-16 03:48

    if your windows type is setted high enough . You can show your window above lock screen.

    WindowsParams.type = WindowManager.LayoutParams.TYPE_SYSTEM_ERROR;

提交回复
热议问题