I run an app on my handset which really needs the screen to remain on for it to function properly. The app already seems to attempt to keep the screen on as the screen timeout seems to be disabled when the app is running, but I can still turn the screen off by tapping the power button.

I do my best not to press the power button, but sometimes I do it by accident.

My question is, is there any way of stopping the power button from turning the screen off? Perhaps there is something the original app developer can do to disable this?

This is on an unrooted device. I'm on Android 4.1.1 , HTC Sense 4+ stock rom

  • The app can't disable the power button. That would be a security nightmare.
    – Dan Hulme
    Commented Jul 9, 2013 at 18:06
  • @DanHulme How about just requiring power button presses to be long-presses to be registered (or requiring confirmation, such as this app does with volume buttons: play.google.com/store/apps/… )
    – A.M.
    Commented Jul 9, 2013 at 18:43
  • That app doesn't intercept the calls, it just undoes them later. You could have an app that turns the screen back on after you turn it off, but I think that would just be annoying rather than helpful.
    – Dan Hulme
    Commented Jul 9, 2013 at 18:48
  • I'm tempted to quip that you should just put a tape the power button.
    – Lie Ryan
    Commented Dec 26, 2013 at 22:03

1 Answer 1


You can prevent lock button from turning off you screen by altering your settings.

  • Go to your settings
  • Select Security
  • Deselect the check box Power button instantly locks

Screen security settings

  • Hmm, I don't have that option. I'm on Android 4.1.1 , HTC Sense 4+ stock rom
    – Rob
    Commented Jul 9, 2013 at 15:22
  • I'm running stock 4.2.2 on a Galaxy Nexus, and I don't have that option either. Is it a custom ROM setting? Commented Jul 9, 2013 at 16:14
  • @TimScarborough I'm running stock 4.2.2 on a GSM Galaxy Nexus as well, but I do have that option. See the screenshot I've edited into Sid's answer.
    – GAThrawn
    Commented Jul 9, 2013 at 16:55
  • 3
    The option only appears if Screen lock is not set to None. The screen turns off regardless of this setting: it only controls whether the lock screen activates when the power button is pressed, or only after the timeout.
    – Dan Hulme
    Commented Jul 9, 2013 at 18:04
  • @DanHulme sorry misread your comment and missed the "not"
    – GAThrawn
    Commented Jul 10, 2013 at 9:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .