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

Kulite Semiconductor Pressure Transducer - HEM-375-20,000G
$148.99
Kulite Semiconductor Pressure Transducer - HEM-375-20,000G pictureLot of 4 Industrial 8" Long 3/8" Thick Quartz Semiconductor Equipment Component
$88.99
Lot of 4 Industrial 8ATS Systems ZYOMYX PAT Aligner w/Accu-Fab Semiconductor Wafer Handling Robot
$1499.99
ATS Systems ZYOMYX PAT Aligner w/Accu-Fab Semiconductor Wafer Handling Robot pictureLam Research 716-072580-035 Rev. A 15"OD Semiconductor Quartz Ring PARTS
$119.99
Lam Research 716-072580-035 Rev. A 15Carlo Gavazzi VDE 0660 Semiconductor Contactor
$40.0
Carlo Gavazzi VDE 0660 Semiconductor Contactor picture






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