John Newell wrote:
IIRC, I just detect the wakeup, and figure out which button
caused the power to come on (don't remember if I just look for
a character code or look at the keyCurrentState bitfield).
I can tell you that keyCurrentState does NOT tell you if the T3 select button is pressed
on wakeup. Could Bob say how to "look for a character code" please. Thank you.
John, I'll would have to dig into my code a little to get an answer, but
the trigger is the wakeup notification. THEN I look for the button.
Also, if you detect a HardKey press during wakeup (by looking at
keyCurrentState bitfield) you can't just launch another application because at
the end of wake up the PDA promtly launches the application attached to that
HardKey. Is there some way of telling the PDA that you have already dealt with
the HardKey press? Thank you again.
I allow the user to define what should happen when they tap a hardbutton
on a sleeping device. On the T3 this includes the 5-way ctr button.
The 5-way ctr can wakeup the device, popup the clock, or do nothing.
For any of the 4 standard hardbuttons, the user can choose a variety of
options: wakeup the device, popup the clock, popup the current app,
wakup to the current app, wakeup to a different app, wakup to the
default app. I use this app constantly on my T600, where the 5-way ctr
doesn't work right, but I have re-tested this on my T3 today and the
5-way ctr does work as described above.
Now, I must be totally honest in saying that I am reluctant to release
too many details, because this code is part of a shareware app of mine;
I call it "PopLaunch". Or, it WILL BE a shareware app when I finally
get around to releasing it officially. Right now it is freeware beta,
as it has been for over a year :/ . It is certainly the next in line
in my stable of products. I've still got some cleaning up to do before
that point, and some additinal features to add, and my other s/w is
keeping me busy enough.
Send me a note off-line and we can discuss further.
Bob.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/