>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!)

That's true.  You could use this, if you were 3.5 specific...I can't,
because I program Symbols.  =(

>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.

What I did was to check the status of the backlighting in a test.
Forgot to add that...good point!

>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.

I agree.  Perhaps it's some kind of timer?  Or maybe they want to
emulate CE.   ;)

-Rus


-- 
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