Turn off screen (simulate press power button)

Post your questions and help other users.

Moderator: Martin

Post Reply
dave_100
Posts: 2
Joined: 25 Jun 2013 21:21

Turn off screen (simulate press power button)

Post by dave_100 » 25 Jun 2013 21:25

Is there a command that will turn off the screen, ie simulate a press of the power button?
After lots of Googling I've found a possible command of "android.intent.action.SCREEN_OFF" but not sure what action to use and where to type this or if this is even what I should be using?

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: Turn off screen (simulate press power button)

Post by pat2net » 25 Jun 2013 22:00

Do you try the action " lock device" ?

dave_100
Posts: 2
Joined: 25 Jun 2013 21:21

Re: Turn off screen (simulate press power button)

Post by dave_100 » 26 Jun 2013 19:08

I hadnt and I just have, it works thank you!!!!

Post Reply