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

Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series
$44.98
Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series pictureDELL 725-BBDU 725BBDU GENUINE OEM LAMP FOR MODEL S560T - Made By DELL
$179.95
DELL 725-BBDU 725BBDU GENUINE OEM LAMP FOR MODEL S560T - Made By DELL pictureDELL 725-BBDQ 725BBDQ GENUINE OEM LAMP FOR MODEL 1850 - Made By DELL
$155.95
DELL 725-BBDQ 725BBDQ GENUINE OEM LAMP FOR MODEL 1850 - Made By DELL pictureOEM BULB with Housing for DELL DELL-1550-LAMP Projector with 180 Day Warranty
$309.0
OEM BULB with Housing for DELL DELL-1550-LAMP Projector with 180 Day Warranty pictureOEM BULB with Housing for DELL 1550 Projector with 180 Day Warranty
$309.0
OEM BULB with Housing for DELL 1550 Projector with 180 Day Warranty picture






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