Couple of things I see.

sysNotifyKeyboardDialogEvent  was only added for OS5.0.  You mention the
emulator below.  There is no emulator for V5.0, so I assume you are testing
this on a pre-V5.x OS?

If so, then it's not going to do anything.  Second
extern Err SysNotifyRegister(UInt16 cardNo, LocalID dbID, UInt32 notifyType,
The second parameter of SysNotifyRegister is your app LocalID, and  it looks
as if you are giving the creator name.

Try this.
 SysCurAppDatabase(&myCardNo, &myDbID);
err = SysNotifyRegister(myCardNo, myDbID, sysNotifyKeyboardDialogEvent  ,
                         NULL, sysNotifyNormalPriority, NULL);

Like I said, if you do what I showed above, and tested on the simulator
which is V5.0, then the above should work, but it won't work on any emulator
because it is pre-os5.

I think there may also be some confusion on what to do when you get the
launch code.

You don't need to launch your app, you could just call your routines at this
time to do what you want instead of the normal keyboard.  If you return
handled in the notify parameters, then the keyboard should never get called
after you.


--
Scott Dreslinski
[EMAIL PROTECTED]
www.digitsense.com


<[EMAIL PROTECTED]> wrote in message news:109638@palm-dev-forum...
>
> Hi!
> Why doesn't anything happen on tapping on abc from e.g. Memopad?
> I want to see my app (named NotifyTest) instead of the built-in
> keyboard after having terminated my app at least once for
> notification. (I notify here on quitting my app, to give the
> emulator a chance to get the notification.) Thank you and perhaps
> more.
>
>
> static UInt32 NotifyTestPalmMain( UInt16 cmd, SysNotifyParamType
> *cmdPBP, UInt16 launchFlags)
>
> {UInt32 *resultP;
>     Err error;
>
>     switch (cmd)
>     {
>    case sysAppLaunchCmdNotify:
>              SysAppLaunch (0, 'STRT',0,
> sysAppLaunchCmdNormalLaunch,cmdPBP,resultP);
>      // break;
>     case sysAppLaunchCmdNormalLaunch:
>
>         error = AppStart();
>         if (error)
>             return error;
>         FrmGotoForm(MainForm);
>         AppEventLoop();
>
>           SysNotifyRegister(0, 'STRT', sysNotifyKeyboardDialogEvent ,
> NULL, sysNotifyNormalPriority, 0);
>
>         AppStop();
>         break;
>
>     default:
>         break;
>     }
>
>     return errNone;
> }
>
>
>
>
>
>



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

Reply via email to