How do I keep the device from fading out the screen? (DEF-1260) (SOLVED)


#1

I don’t want the screen to fade out after a few seconds - how do I make sure that it stays lit/active?


Fade out screen on android
#2

How and where do the screen fade out? Are you talking about overriding device user settings?


#3

While the game is running, the screen fades out after a while, as per the power-saving settings. Apps can override this, but I don’t know how to do it in Defold. I’m not getting this on iOS it seems, but it happens on the Android devices.

Basically looking for the Defold equivalent of this: http://docs.unity3d.com/ScriptReference/Screen-sleepTimeout.html


#4

Ok. I’m not sure if it perhaps can be set in the manifest. I’ll check.


#5

I’m resurrecting this one since it was asked about again in another post. @sicher, did you find a solution?


#6

This feature has been requested before, the internal ID is DEF-1260. It’s planned to be implemented during the summer.


#7

Is there new info on this? How to keep an app awake?
It has some trivial Java implementation on android, I bet whether it was added. Couldn’t find any toggles in project settings or in the documentation.
Tried searching for “keep awake” with no luck


#8

Have you tried setting the window dim mode?


#9

Thanks, looks like the exact thing I was looking for.