Which kind device are you using? If it is a Treo 600 or 650, then the Phone Library it uses is in the PalmOne SDK. Go to https://pluggedin.palm.com/ to get it. (The latest is 5.1 I believe)

Chipp

henryxu(徐豐華=研發) wrote:
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/

Reply via email to