-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 2:04 PM
To: Palm Developer Forum
Subject: Sleep Mode notification manager example


Does anyone have an example/sample code of using the Notification manager to
catch the sysNotifySleepNotifyEvent or sysNotifySleepRequestEvent and
executing some code in their application before it actually goes to sleep.

Specifically, I would like my app to:

1.  If the app is running and the user hits the power button, have the
application exit to the launcher and then have the Palm power off.

2.  If the app is not running and the user hits the power button to turn the
PDA off (or the unit times out and goes to sleep), then have my app run some
code to store some info and then let the Palm power off.

I have already tried using the method of watching for the vchrPowerOff in a
keydown event in the app's event loop to handle the first case, but that
doesn't help at all for the second case.

HELP!!!

Very truly yours,

Rob G.


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



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