Scott Rock said;
> every 2 seconds (when my alarm is triggering),
> the screen goes grey for a very brief instant
Hi Scott,
Perhaps if I share my experiences with you, it may help - hope so!
For reasons I won't bother going in to (OS 5 fatal errors), I had to
rewrite a driver to use the alarm manager to check if any bytes had been
received on the ir serial port. 
This is what I experienced;
Set an alarm for 2 seconds in the future, and wait to receive
sysAppLaunchCmdAlarmTriggered, purge the alarm exactly as you are doing
to avoid receiving sysAppLaunchCmdDisplayAlarm, and do my stuff.  The
docs say that purging the alarm will stop the UI from being interfered
with.  In my experience - NOT TRUE.  It would either turn the unit back
on from sleep, or reset the auto off timer and stop the unit from going
to sleep at all (great for battery life that!).  Hence the UI *knows*
and is clearly getting excited about the supposedly dismissed alarm.
The only way I found of not interfering with the UI was to use a
procedure alarm, this works in the way that you and I both expected your
current method to work ie. Don't bother my user thanks!
Incidentally, I also found that setting an alarm for zero seconds in the
future gives you an alarm NOW, setting the alarm for one second in the
future also gives you an alarm NOW, not in one second's time. Setting at
two seconds did correctly give me an alarm every two seconds.
Hope this helps
John

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

Reply via email to