In PalmOS 3.5 and before, the proper way to do this is using the trigger and
display launch codes of the alarm manager. You can look at Datebook source
code in the 3.5 SDK to see how this is done. The trigger launch code comes
in first, and it is where you play your sound if desired. You want to wait
until you get the display launch code to present your dialog with the
message. If another alarm dialog is already on the screen, you'll get the
trigger launch code on time, but the display launch will be delayed until
the user closes the alarm dialogs that came before it.

In PalmOS 4.0, the attention manager was added. It's job is to eliminate the
stack of alarm dialogs by presenting all alarms in one big list. You still
use the alarm manager, but when you get the trigger launch code, you call
the attention manager to do the rest. You don't present a dialog or do
anything else when you get the display launch code. In fact, you can set a
bit to avoid getting the display launch code altogether. The attention
manager will then use its own launch code to get your application to play a
sound, display, etc. Again, you can look at the Datebook source code in the
4.0 SDK to see how this is done.
-- 
Peter Epstein

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

Reply via email to