From: "Dr. Vesselin Bontchev" <[EMAIL PROTECTED]> > OK, I have implemented interception of application launching in PalmOS 5.x only, using the Notification Manager and registering to receive notifications for the sysNotifyAppLaunchingEvent. > > My question is - is there an easy way of determining whether my application has received this notification because some application is being launched - or because some application is quitting? I'm interested only in the launching events; not in the quitting ones. > > I could, I suppose, check whether the name of the launched application is "Launcher" - but is there a more intelligent way to do it? > I tested for CRID == 'lnch', which is slightly better, but not really an answer. I think the problem is that, as you've realised, you're not being notified of the app's quitting, you're being notified of the launcher app starting up, which is exactly what that notification is meant to tell you. Of course most apps aren't interested in the launcher launch, because it almost always follows an application exit but Palm OS has to tell you so you have to check for it and ignore it.
Chris Tutty -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
