My application need to do something when receives a call.
So I add the following codes in the PilotMain:
case sysAppLaunchCmdSyncNotify:
case sysAppLaunchCmdSystemReset:
error = SysCurAppDatabase(&cardNo, &appID);
if (error)
return error;
SysNotifyRegister(cardNo, appID, kTelTelephonyNotification,
NULL, sysNotifyNormalPriority, NULL);
break;
//Once registered, we receive incoming SMS message
//notifications as a sysAppLaunchCmdNotify launch code
case sysAppLaunchCmdNotify:
if (((SysNotifyParamType*)cmdPBP)->notifyType ==
sysNotifyCardRemovedEvent)
{
ErrMessage(d_lang_ui_ExpansionCardRemoved);
}
else if (((SysNotifyParamType*)cmdPBP)->notifyType ==
kTelTelephonyNotification)
{
//MyPrintF("\nphone call\n");
//ErrMessage("phone call");
EditRecord(g_playlistsStoredDatabase, 0, "New");
}
break;
I can receive the sysNotifyCardRemovedEvent, but it seems that i can't receive
kTelTelephonyNotification.
What's the problem, and what can I do?
(ErrMessage calls FrmCustomAlert)
thank you.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/