Menu

How do I use the SDK to prevent launching the screen saver when an app is running?

To prevent the screen saver from launching when an app is running, add the following line to the Android manifest file:

<uses-permission android:name="android.permission.WAKE_LOCK" />

Also, call the following Android activity class method:

getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON);

You can also use the Knox SDK or Knox Customization SDK to change the screen timeout:

setScreenTimeout(int timeout)