Page 1 of 1

urgent question

Posted: 09 Apr 2018 18:13
by Autumn-Leigh
How do i get it to go to lock screen without it turning display off?

Re: urgent question

Posted: 09 Apr 2018 19:06
by Martin
Hi,

The built-in action to lock the device also turns the display off on most (or all) devices since the API is designed this way by Google. You could probably create a workaround by executing an action Turn Screen On directly after action Lock Device. Adding a third action Dismiss Slide to Unlock Keyguard might show the PIN/Password screen. Note that this worked in a quick test on a Pixel XL with Android 8.1 but manufacturers like Samsung often modify the behavior of the lock screen features so it might not work on all devices.

Regards,
Martin

Re: urgent question

Posted: 10 Apr 2018 09:25
by Autumn-Leigh
Martin wrote:Hi,

The built-in action to lock the device also turns the display off on most (or all) devices since the API is designed this way by Google. You could probably create a workaround by executing an action Turn Screen On directly after action Lock Device. Adding a third action Dismiss Slide to Unlock Keyguard might show the PIN/Password screen. Note that this worked in a quick test on a Pixel XL with Android 8.1 but manufacturers like Samsung often modify the behavior of the lock screen features so it might not work on all devices.

Regards,
Martin
Thank you, It works on rooted huawei mediapad x2 :)