Hi just wondering if there is a way to run my application to show a form during device "wake up" before exiting and running other applications? I know I can register to receive the sysNotifyLateWakeUpEvent event but how can I make my application run before any other application does (eg. when a hard button is pressed and another application is queued to launch). It' a simple program to display a note to remind the user of something? Any input is greatly appreciated.

Regards,
York Kie


From: "Igor Nesterov" <[EMAIL PROTECTED]>
Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Subject: Re: sysNotifyLateWakeupEvent questions.
Date: Fri, 21 Nov 2003 12:08:11 +0300

> (1) So far, I'm using sysNotifyLateWakeUpEvent and it's working only when
> the power button is pressed to turn on the device. If a hard button is
> pressed, eg. the To Do button, my program gets triggered but when it tries
> to display an alert, it doesn't show up on the screen. Looks like the OS
> completely ignores the alert while it's launching the To Do app. How can I
> overcome this? Will sending a deferred notification to my own app help?


    When you wake up with hard key, you have vchrHard? key in event queue.
Modal event loop inside FrmAlert process this key and run application. You
can flush queue (be aware, the can be vchrResetAutoOff for OS5) or change
alert form to attention manager notification.

> (2) I have an user using the NX80 that says that when his device is off,
he
> gets a beep every 5 minutes and when he turns it on, there are a few alert
> boxes already open. I suspect that there might be an alarm application
that
> is powering up the system every 5 minutes. The question is, how do I check
> if the system is waking up because of an user action (eg. pressing a
button)
> or an alarm program?


Check keyMask and event queue.



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

_________________________________________________________________ Are you in love? Find a date on MSN Personals http://match.msn.com.my/


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

Reply via email to