try looking registereing the early and late wake event. check the
NotifyMgr.h file for all the events
that you can register.
when the phone wakes up it will send you the
sysNotifyLateWakeupEvent
you just need to register it like
Err err = 1;
LocalID dbid;
UInt16 cardno;
DmSearchStateType theSearchState;
if (DmGetNextDatabaseByTypeCreator(true, &theSearchState,
sysFileTApplication, appFileCreator,
true, &cardno, &dbid) == 0)
{
err = SysNotifyRegister(cardno, dbid, type, NULL, -15, NULL);
}
return err;
regards
From: "N Grant" <[EMAIL PROTECTED]>
Reply-To: "Palm Developer Forum" <[email protected]>
To: "Palm Developer Forum" <[email protected]>
Subject: Advise on doing "stuff" at a specific time 4 Treo 650 / 680
Date: Tue, 30 Jan 2007 04:46:11 -0000
Hi Guys
I have looked thru. the archive & there are a few topics about how to
handle timed events & they appear to be out of date now.
What is the best way to handle doing something at a specific time.
I am not certain how you go about getting the "update" of the time changing
so that you can do your "stuff".
My first idea was to count ticks in your event handler ?
or
Then I was thinking I should registering for a event (which 1) & then
processing the notification in PilotMain ?
What happens if the phone is "asleep", I know how to turn of Keyguard etc,
but I am not certain how to catch the wake up.
Any ideas ?
TIA
NG
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
_________________________________________________________________
Free Alerts : Be smart - let your information find you !
http://alerts.live.com/Alerts/Default.aspx
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/