UltraLite User's Guide
Developing Applications for the Palm Computing Platform
Palm OS applications are single threaded. To maintain the illusion that an application is running in the background after you close it, the application must save its internal state when the user switches to another application. When the application is launched again, it must restore its internal state.
This section describes how to handle launching and closing of an UltraLite Palm application.
Two Palm-specific UltraLite functions save and restore internal state information, and must be used by all UltraLite applications for the Palm Computing Platform. These functions also handle synchronization if you are using the HotSync synchronization streams, but not if you are using TCP/IP or HTTP streams.
Launching an UltraLite Palm application
Closing an UltraLite Palm application