I need Phone turn off event notification i tried to register the phone
event like this
err = PhnLibRegister(PhoneLibRefNum, appFileCreator, phnPowerOff);
and in the pilotMain function
static UInt32 StarterPalmMain(UInt16 cmd, MemPtr cmdPBP, UInt16
launchFlags)
{
Err error;
PhnEventPtr phoneEvent;
switch (cmd)
.....
.....
case phnLibLaunchCmdEvent:
phoneEvent = (PhnEventPtr)cmdPBP;
if (phoneEvent->eventType == phnEvtPower)
{
SndPlaySystemSound(sndAlarm);
phoneEvent->acknowledge = true;
}
}
But I'm not getting any phone events while turnoff the phone(By pressing
the red button for a few sec)
Sumesh N R
Jeff Loucks wrote:
> Did you mean, when the phone is turned off, or when the PDA is turned off?
>
> The phone can be observed by registering for phone events (phone
> library) and watching the phone status.
> The PDA sleeping and waking is indicated by the notifications that
> Ryan identified.
>
> On Fri, Apr 11, 2008 at 8:43 AM, Ryan Rix <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> The one the link points to: sysNotifySleepNotifyEvent and the one
> after it sysNotifySleepRequestEvent
>
>
> On 4/10/08, *Sumesh* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> which notification??
>
> Sumesh
>
>
> Ryan Rix wrote:
>>
>>
>> http://www.access-company.com/developers/documents/docs/palmos/PalmOSReference/Notifications.html#1048174
>>
>> and the one below it.
>>
>>
>> On 4/10/08, *Sumesh* <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> Hi,
>>
>> Is there any LanchCodes or notifications for phone
>> off?. My application needs to notify when the Phone is
>> turned off... Is there any way to do that.
>>
>> --
>> For information on using the ACCESS Developer Forums, or
>> to unsubscribe, please see
>> http://www.access-company.com/developers/forums/
>>
>>
>>
>>
>> --
>> Thanks and best regards,
>> Ryan Rix
>> TamsPalm - The PalmOS Blog
>>
>>
>> Jasmine Bowden - Class of 2009, Marc Rasmussen - Class of
>> 2008, Erica
>> Sheffey - Class of 2009, Rest in peace.
>> --
>> For information on using the ACCESS Developer Forums, or to
>> unsubscribe, please see http://www.access-company.com/developers/forums/
>
> --
> For information on using the ACCESS Developer Forums, or to
> unsubscribe, please see http://www.access-company.com/developers/forums/
>
>
>
>
> --
> Thanks and best regards,
> Ryan Rix
> TamsPalm - The PalmOS Blog
>
>
> Jasmine Bowden - Class of 2009, Marc Rasmussen - Class of 2008, Erica
> Sheffey - Class of 2009, Rest in peace.
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
>
>
>
> --
> [Jeff Loucks, Gig Harbor, WA, USA]
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/