Ren� Laterveer <[EMAIL PROTECTED]> wrote:
> I'm trying to get my app to do something when powering on or off the device.
> My code gets called when powering off but not when powering back on.
> What am I doing wrong?
>
> Here is the code I use:
> ------
>
> EvtGetEvent(&event, timeout);
>
> if ((event.eType == keyDownEvent) &&
> (event.data.keyDown.modifiers & poweredOnKeyMask)) {
> PoweredOnCallback();
> }
The event you are testing for never occurs. Palm OS never generates it.
This topic has been discussed before on this list, so you should be
able to find the answer to your problem in the archives. (I would try
the eGroups archive rather than eScribe, because the eGroups archives
go back much further.)
--
Roger Chaplin
<[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html