0

I want to maintain the screen ON on an app I have developed on the Sony Smarteyeglass. The problem is that I haven't found in the API something to set or unset. How could be done? Is it posible?

Gasteizko
  • 208
  • 1
  • 9

1 Answers1

1

Take a look at the setScreenState() method:

https://developer.sony.com/reference/seg-sdk/com/sonyericsson/extras/liveware/extension/util/control/ControlExtension#setScreenState(int)

You can pass Control.Intents#SCREEN_STATE_ON to keep the screen on. Be careful when using this though as the battery will drain very fast with the screen on continuously.

mldeveloper
  • 2,253
  • 1
  • 13
  • 14