At 9:37 PM +0100 9-02-00, Mike Davis wrote:
>What is the proper way to exit an application, via ones program?
>
>I'm not talking about exiting because of an error. I mean say you
>just want the program to exit back to the launcher, without having to
>tap the launcher button.
Don't think of it as 'exit', because that's not really the Palm paradigm.
Palm apps don't normally exit, they just run until the user runs something
else. (Why waste UI space making an 'exit' button or 'exit' command when
the launcher button is always available? Use the UI space for something
else and leave the code out entirely, thus simplifying your application!)
If you REALLY want to launch the launcher, you can use SysUIAppSwitch to
launch it directly! PrefGetPreference(prefLauncherAppCreator) will give
you the current launcher app's creator ID, or you can use sysFileCLauncher
for the one in ROM.
Or perhaps you'd be better off enqueueing a vchrLaunch character, to
simulate the user tapping on the launcher button. Then more launcher hacks
might work properly.
--Bob
_______________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe SARL (still 3Com)
V: +33 4 99.52.43.54 F: +33 4 99.52.43.97 [EMAIL PROTECTED]
77 rue Samuel Morse, 34935 Montpellier, Cedex 9, France
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html