How to keep device from falling asleep?

Hey guys,

question for you.  I have an app that primarily uses the accelerometer so touching the screen is minimal.  How do I keep the device from falling asleep while I am playing?  very annoying to be driving the car and have the screen go dim on me and have to touch the screen to get it to wake up fully again.

Thanks in advance,

Ed

I believe the listener is system.setIdleTimer( false ).

Perfect!!!  Thanks so much.

I believe the listener is system.setIdleTimer( false ).

Perfect!!!  Thanks so much.