Again, the whole confusion stems from the fact that App B is quitting without being told to quit by the user. If you want to go to the launcher (for example because B can't run since it is missing a required file or whatever) then send them to the launcher. Don't be passive and just quit and hope that what you want to happen does actually happen; instead, take charge! If you've a requirement, then make it so! Enqueue that key as if the user hit the Home button and you're done!
Well, actually enqueue the vchrLauncher key, then run an event loop until you get an appStopEvent... just putting the key in the queue won't end your application until the key code's been seen by the SysHandleEvent call, which will then do its own SysUIAppSwitch, which causes the appStopEvent to be sent.
Easy!
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
