The screen is turned on when EvtResetAutoOffTimer is called. When waking
up from a keypress, for example, the system will call that function when
it sees the key event with the poweredOnkeyMask come though, which may
be after the late wakeup notification on some devices.

You wouldn't want to call this yourself each time the device wakes up
though. There are times when the system will wake up, do a litte
processing, and go back to sleep without ever turning on the screen
(e.g. ProcAlarms). In those cases you would neither want to turn on the
screen nor reset the autooff timer.

If you only want to display the bitmap when the user turns on the device
(i.e. with a keypress) you might consider monitoring key events and
display the bitmap sometime after you see a key with the
poweredOnKeyMask set. In OS 5 you can watch for the key with
sysNotifyVirtualCharHandlingEvent and in earlier OS's you could patch
SysHandleEvent.

/TomB

-----Original Message-----
From: Bastian Bohac

The bitmap is shown, but the screen is still black. It first turns on,
after the time has elapsed, the bitmap woul normally remain on the
screen.

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

Reply via email to