How to disable the turn off after x minutes on the device ?

Shining

Member
Licensed User
Longtime User
Hello,
I'm making an application that plays wave files to facilitate meditation exercises. (with timers)

Before I start I manually disable the "turn off the device after 2 minutes of not being used"-flag in the energy settings of my htc touch hd.

If I don't do this, my device is turned off after 2 minutes when the aplication runs.

How can I disable and enable this flag through my program ?

Thanks for the input.
 
Top