How to keep screen on?

Hello I am trying to keep my screen on as long as the app is running What I want to achieve is the same behaviour when you set KEEP_SCREEN_ON for android because if I let the device with no interaction the screen goes dim in about 10 secs, I have searched here in the forums but been unabled to get a solution I think it might be a line of code or something… but don’t know really.

Hi @jimmy.marquez,

I think this is the API you’re looking for:

http://docs.coronalabs.com/api/library/system/setIdleTimer.html

Exactly right! that is what I was looking for!, thank you!

Hi @jimmy.marquez,

I think this is the API you’re looking for:

http://docs.coronalabs.com/api/library/system/setIdleTimer.html

Exactly right! that is what I was looking for!, thank you!