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

Amprobe RS-3 Ultra Rotary Scale Snap Around Electrician Tool Voltage Meter, Case
$39.99
Amprobe RS-3 Ultra Rotary Scale Snap Around Electrician Tool Voltage Meter, Case picture15V ANALOG VOLT VOLTAGE PANEL METER LOT OF 3
$12.99
15V ANALOG VOLT VOLTAGE PANEL METER LOT OF 3 pictureIdeal Vol-Con 61-076 voltage tester
$25.0
Ideal Vol-Con 61-076 voltage tester pictureGE CR104PBL00M3S8 Illum Pushbutton Full Voltage Amber Lens 24 V AC/DC
$89.5
GE CR104PBL00M3S8 Illum Pushbutton Full Voltage Amber Lens 24 V AC/DC pictureGE CR104PBL00R1S8 Illum Pushbutton Full Voltage Red Lens 24 V AC/DC
$49.75
GE CR104PBL00R1S8 Illum Pushbutton Full Voltage Red Lens 24 V AC/DC picture






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