Android: prevent display from turning off

android, android-manifest

Solution

The simplest would be adding `android:keepScreenOn="true"` to the layout in your xml.

Problem

I've written a small game, that is only controlled via some sensors. There is no touchscreninput or something similar. The problem is, that after a few seconds of gaming, the screen turns off (because of no touch-input) Is there something like a manifest-entry that prevents the screen from this behaviour? regards

Original source