The reason I wanted the program to exit is:
I am deleting all databases the program requires to operate correctly.
I am doing this because, the database grows continuously as the user takes
readings through the serial port.
The user can delete each individual record but as most of us are lazy I made
a delete all command.
There is no exit button. It just gives a warning before the application
exits.
-----Original Message-----
From: Peter Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 29, 2001 3:33 PM
To: Palm Developer Forum
Subject: RE: Exiting my application
You need to post the event to the queue, as Brian suggested is his sample
code (call EvtAddEventToQueue). You can post an appStopEvent, and in most
cases, it'll switch to the last running application. If you want it to
switch to the Launcher every time, you can use SysUIAppSwitch. You need to
take care to support third party launchers. Or you could post a power off
key, and it'll turn the device off without exiting your application.
Of course, the norm for most Palm applications is to leave it running until
the user explicitly chooses some other application to run, at which point
you'll receive an appStopEvent. Palm applications should not have exit
buttons! Palm users shouldn't have to think about saving files or quitting
applications. That's part of the Zen of Palm design philosophy.
-
Peter Epstein
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/