BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-12-2005, 08:02 PM   #1 (permalink)
New Member
 
Join Date: Jun 2005
Model: 7520
Carrier: Sprint
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Blackberry Events

Please Login to Remove!

Hi,
My computer is beginning to rollout a Blackberry solution for our service department. I am looking for an example of catching a keyboard or track wheel event and responding to it. I want to use this code sample to capture the different events that are produced by the Blackberry. I have experience in C++, but none in Java.

Thanks for your help,
Tom
Offline  
Old 06-18-2005, 04:05 AM   #2 (permalink)
Knows Where the Search Button Is
 
jcomeau_ictx's Avatar
 
Join Date: Dec 2004
Location: Columbus, NM, USA
Model: emu
Posts: 20
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look at the javax.microedition.lcdui.Canvas class in the API docs. You want to capture, at a minimum, the keyPressed and keyRepeated events; just having these methods in your Canvas subclass will cause them to be called serially on reception of the events:

Code:
protected void keyPressed(int code) {
 System.err.println("key pressed: " + code);
}
__________________
Have you googled yourself lately?
Offline  
Old 06-19-2005, 05:14 PM   #3 (permalink)
New Member
 
Join Date: Jun 2005
Model: 7520
Carrier: Sprint
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Audiocodes Mediant 2000 16 span E1 T1 pri , VoIP Gateway sip isdn digital
$3446.6
Audiocodes Mediant 2000 16 span E1 T1 pri , VoIP Gateway sip isdn digital pictureAudiocodes 4 span E1 T1 pri module for mediant 1000 m1k m1kb VoIP Gateway 2000
$1607.8
Audiocodes 4 span E1 T1 pri module for mediant 1000 m1k m1kb VoIP Gateway 2000 pictureAudiocodes 4 span E1 T1 pri module for mediant 1000 m1k m1kb VoIP Gateway 2000
$1263.03
Audiocodes 4 span E1 T1 pri module for mediant 1000 m1k m1kb VoIP Gateway 2000 pictureAudiocodes Mediant 2000 4 span E1 T1 pri ,SIP Megaco VoIP Gateway trunk
$1299.0
Audiocodes Mediant 2000 4 span E1 T1 pri ,SIP Megaco VoIP Gateway trunk pictureSNOM 710 SIP VoiP Black 4-Line Display Phone w/ Base Handset
$69.95
SNOM 710 SIP VoiP Black 4-Line Display Phone w/ Base Handset picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.