UI Event trigger for power button?
Posted: 08 Dec 2014 16:28
I use the standard pattern login so (on ny Lollipop Nexus 4) the failed login trigger does work (it only seems to work for PIN type logins).
So I would like to create a flow that triggers an action based on the user not logging in with a certain time. I can test when they have logged in with the User Present trigger, but also need to detect when they are stuck on the login screen. I was thinking of using the UI Event trigger to find when the power button has been pressed. Anyone know what Package Name/Event type to use for this. Or maybe there's a Package Name/Event type for the lock screen being active specifically?
So I would like to create a flow that triggers an action based on the user not logging in with a certain time. I can test when they have logged in with the User Present trigger, but also need to detect when they are stuck on the login screen. I was thinking of using the UI Event trigger to find when the power button has been pressed. Anyone know what Package Name/Event type to use for this. Or maybe there's a Package Name/Event type for the lock screen being active specifically?