I have a new project where I want to temporarily display a UI with some text and a button every time the PDA is turned on.

When the button in the UI is pressed, the PDA should return to the application that was previously running retaining any dialog that might have been active and also retaining cursor position etc.

What I've done so far:
----------------------
I have registered to recieve the sysNotifyLateWakeupEvent, and I'm handling this in my PilotMain when i receive the sysAppLaunchCmdNotify launch code.


In the handler for sysNotifyLateWakeupEvent, I've tried the following;

1) Using SysUIAppSwitch and a launch code of 0x8000 for my entry point. (The code-chunk for handling 0x8000 is identical to a NormalLaunch)
This will display my UI, but it exits the previous application, so when I press the button in the UI the PDA returns to the launcher.


2) Using SysAppLaunch and a launch code of 0x8000 for my entry point. The API reference manual states that a developer should not pass any launchFlags to this function. This leaves the app without any globals or UI. I've tried playing around with passing launch flags to SysAppLaunch with varying results.

SysAppLaunch seems to be the function to use since it handles the call as a subroutine, retaining the status of the previous app, but which combination of launch flags can I use to make it work?

Or, is there any other way of accomplishing what I want to do?

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to