If you application is always running as the foreground application, as long as you call EvtResetAutoOffTimer() frequent enough, you should be able to prevent the device from going to sleep.

Kisok-type situation? Using Palm OS as the OS for a kiosk? That's interesting.

Tony

Eric Blanpied wrote:

Thanks, but the situation is a bit different. The devices that the app will
play on are intended to be tethered and continuously powered. It's a
kiosk-type situation, where sleep would be the wrong thing.

-e

Dave Lippincott wrote:


Try something a little simpler.  Either use EvtResetAutoOffTimer to reset
the sleep timer during a critical process and prevent the unit from
sleeping.   Or catch the power off message, do what you need to do to
prepare for power off, then repost the message.  If you defer the message,
just make sure you don't interrupt the power critical message.  If you
intercept this message, you run the risk of completely depleting the
remaining power and causing the unit to hard-reset.






--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to