Activate Android with touch instead of power button

Gabriël picture Gabriël · Jun 8, 2011 · Viewed 9.6k times · Source

We've got a tablet application for which we want to screen to timeout after a certain period, but would like the user to re-enable it by touching the screen instead of the 'power'-button on the side of the device.

What's the best approach (battery performance) to this?

  1. Using a Partial Wake Lock (will the screen react?)
  2. Disable the screen in some way, but keep everything (including touch response) working?
  3. Other?

Any suggestions on this?

Answer

CommonsWare picture CommonsWare · Jun 8, 2011

We've got a tablet application for which we want to screen to timeout after a certain period, but would like the user to re-enable it by touching the screen instead of the 'power'-button on the side of the device.

This is impossible except perhaps via custom firmware. If the screen is off, it will not respond to touch events.