Enabling idle screen timeout

Monkey Targets Forums/Android/Enabling idle screen timeout

lonnieh(Posted 2014) [#1]
Hi, any way to re-enable the screen idle timeout? Not sure what it is called really but it's when the screen will blank after a few seconds of inactivity.


ziggy(Posted 2014) [#2]
I think you can enable it in the manifest file, in the Android build folder. Not at my computer right now, but I think it's there


lonnieh(Posted 2014) [#3]
Ah yes yes I clicked around until I found on in the build folder. I am seeing a "Theme.NoTitleBar.Fullscreen", do you know off the top of your head what it needs to be changed to?


lonnieh(Posted 2014) [#4]
Found it for sure, thanks ziggy. Here it is for future reference: open main.xml in your projects android templates folder (ex: project\project.buildv77f\android\templates\res\layout\main.xml) and changed the following line: 'android:keepScreenOn="true"' to 'android:keepScreenOn="false"'