(Sorry for long time response, but my server was down...)
Why not using SysAppLaunch or SysUIAppSwitch?
Well, as I said, my Viewer is CURRENT RUNNING APPLICATION. PagerCard sends
action code about received message and current PAGER application receives
it (I can set current pager app programatically, or it's system app that
comes in pager card ROM.) So before starting Viewer, I set my Receiver as
current pager app, exit it and start Viewer. When page comes (even with
Viewer started), Receiver would be started via launch code (of course
without globals) to store message into DB. Now, I have to notify Viewer
that DB is refreshed. As I understand it, it's possible via launch codes
only because Viewer is already STARTED and need to be notified only. I
don't know that it's possible to use SysAppLaunch or ..Switch.. on already
running application.
BTW, even if I could get by somehow else, what is general solution when
there is a danger of overlapping custom launch codes.
Rgds,
D. Radic
On Fri, 25 Feb 2000, Steve wrote:
> >My custom action code is defined 'by the book' as
> > sysAppLaunchCmdCustomBase.
> >Receiver sends it via
> > SysBroadcastActionCode()
> >API call and Viewer handles it well.
> >
> >Now, since sysAppLaunchCmdCustomBase is only some *number* in fact and
> >SysBroadcastActionCode() sends it to *ALL* UI applications, what
> >would happen if there is some other application on same Palm that has
> >defined that same *number* as action code and sends it or responds to it?
>
> Since you KNOW what application you want to talk to, why aren't you using
> SysAppLaunch or SysUIAppSwitch?
>
>
> Steve Patt
> President, Stevens Creek Software
> http://www.stevenscreek.com/palm
> Best PQA ("ePQA"), PalmSource 99
> Best Application ("PizzaScan"), Palm Developer's Conference 1998
> First printing software for the Palm - September, 1997
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html