Page 1 of 1

Turn off screen (simulate press power button)

Posted: 25 Jun 2013 21:25
by dave_100
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?

Re: Turn off screen (simulate press power button)

Posted: 25 Jun 2013 22:00
by pat2net
Do you try the action " lock device" ?

Re: Turn off screen (simulate press power button)

Posted: 26 Jun 2013 19:08
by dave_100
I hadnt and I just have, it works thank you!!!!