At 11:21 AM 1/18/2005, you wrote:
Thanks everyone.

To summarize:

a) SysUIAppSwitch may be consistent across different versions of the OS, but there's no consensus yet. I've seen it behave differently on the emulator between OS 3.5 and 4.1

b) Palm OS just isn't designed to treat the App Launcher, for example, as the "Desktop" that you return to after running your programs. Palm OS seems to be based on stringing together the execution of apps in a sequence, one after the other. You can run whatever you want at any time, but when you quit your current app, the OS will take you back to whatever app launched it. That's the natural behaviour.

c) There aren't any good ways around b).

If you want your app "B" to exit to a different app, then B needs to call SysUIAppSwitch itself. You could write a routine that calls it, then eats events from the queue until it's seen an appStopEvent, and that would change the internal system variable, but it would have to run in the context of app B.



-- 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/

Reply via email to