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

New Vintage Velocette MAC Raw 1948 to 1953 Petrol Fuel Gas Tank
$280.0
New Vintage Velocette MAC Raw 1948 to 1953 Petrol Fuel Gas Tank pictureMAC Tools Steel Punch SMR6 Vintage USA
$5.99
MAC Tools Steel Punch SMR6 Vintage USA pictureVINTAGE MAC CHALLENGER TOOL 80100
$39.99
VINTAGE MAC CHALLENGER TOOL 80100   pictureVintage Mac Tools ET-390 Electrical Systems Analyzer - Good Working Condition -
$39.99
Vintage Mac Tools ET-390 Electrical Systems Analyzer - Good Working Condition -  pictureVINTAGE VELOCETTE MAC MOV GTP KTS MSS REAR FENDER MUDGUARD STEEL REPRODUCTION@gt
$259.99
VINTAGE VELOCETTE MAC MOV GTP KTS MSS REAR FENDER MUDGUARD STEEL REPRODUCTION@gt picture






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