BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-01-2009, 09:26 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: -8820
PIN: N/A
Carrier: starhub
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile how to get the keyEvent for backgound app when another foregound app run

Please Login to Remove!

i must implment a function that get the call number when the user initiate a call .then hang out the call . so i think one way is to get the system wide keyevent . but the keylistener seems it just can get the keyevent in the app wide .is there some other way to implement it ?thx for help
Offline  
Old 11-01-2009, 10:17 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You can only get key events when your app has the foreground.

Look at PhoneListener to be notified of the incoming call.

There is no API for call control, but some folks use use the key event injector to simulate keybard input for this purpose.

If you search the forum, you will find many, many threads discussing this issue.
Offline  
Old 11-01-2009, 09:46 PM   #3 (permalink)
New Member
 
Join Date: Nov 2009
Model: -8820
PIN: N/A
Carrier: starhub
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
You can only get key events when your app has the foreground.

Look at PhoneListener to be notified of the incoming call.

There is no API for call control, but some folks use use the key event injector to simulate keybard input for this purpose.

If you search the forum, you will find many, many threads discussing this issue.
thx
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

Quadtech 7600 Precision RLC Meter 10Hz-2MHz LCR Impedance Inductance Analyzer
$1770.0
Quadtech 7600 Precision RLC Meter 10Hz-2MHz LCR Impedance Inductance Analyzer pictureSOLAR TYPE 8328-50-TS-50-N LINE IMPEDANCE STABILIZATION NETWORK
$150.0
SOLAR TYPE 8328-50-TS-50-N LINE IMPEDANCE STABILIZATION NETWORK picture10x Ceramic Resonator 8.0MHz, 3-Pins 25Ω max. Resonant Impedance
$6.56
10x Ceramic Resonator 8.0MHz, 3-Pins 25Ω max. Resonant Impedance pictureU.S. Navy ZM-11A/U Impedance Bridge. See Details.
$90.0
U.S. Navy ZM-11A/U Impedance Bridge. See Details. pictureCascade Microtech 101-190 impedance standard substrate probe calibration
$300.0
Cascade Microtech 101-190 impedance standard substrate probe calibration picture






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