Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Touch event while display off

Sorry for stupid question, but can I listening touch events from android phone, while display is off? Or touch system works only when display is ON..?

like image 893
user3274393 Avatar asked Feb 05 '14 09:02

user3274393


1 Answers

Only when the display is on since the touchscreen needs power to detect touches. However, there is some research to re-register the sensors when the screen is off, so maybe you'll have some luck if you follow that route.

Useful Resources:

  • Getting Android Sensor Events While The Screen is Off
  • Android docs - Partial wake lock
  • Example app on gitHub
like image 188
Juan Cortés Avatar answered Sep 28 '22 16:09

Juan Cortés