Two things to add:

First, as of Palm OS 3.5 you can register to be told when the unit turns on
or off, with the Notification Manager.  See the documentation; it is the
only 100% safe and reliable way to do this sort of thing (which is why we
put it in the OS!)

Second, if you're just watching for the keydown event on the power button,

don't forget that people also use that to turn on the backlighting!  That's
one of the big complications with hacking this in pre-3.5.

And for what it's worth, in general I'd be unhappy if an app I was using
decided to dramatically change its behavior (or even quit) when I turned
off the device.  Unless you can't avoid it, or have a really good reason,
like for instance having a network connection be dropped.  But even then
having the app quit would seem strange to me.  Perhaps you have an unusual
situation.

-David Fedor
Palm Developer Support



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

Reply via email to