Search code examples
androidandroid-intentmotorola

Is there an Android API feature to tell when the user is looking at the device?


The Moto X comes with a feature that keeps the screen on when the user is looking at it. Is there an API that allows a third-party app to tell if the user is looking at the device?


Solution

  • Not in standard Android. Device manufacturers may offer ones specific for their devices.