|
Slide 6.13: Palm OS programming concepts Slide 6.15: Event loop Home |
|
Exit command; instead they exit when a user requests another application.
PilotMain, which is the entry point for all applications.
When an application receives a launch code, it must first check whether it can handle this particular code.
For example, only applications that have text data should respond to a launch code requesting a string search.
If an application can not handle a launch code, it exits without failure.
Otherwise, it performs the action immediately and returns.
sysAppLaunchCmdNormalLaunch, it decides if it should respond to that launch code.
If it responds to the launch code, it does so by implementing a launch code handler, which is invoked from its PilotMain function.