BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
jx4245 Offline
New Member
 
Posts: 5
Join Date: Nov 2009
Model: -8820
PIN: N/A
Carrier: starhub
Smile how to get the keyEvent for backgound app when another foregound app run - 11-01-2009, 09:26 AM

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 814
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 11-01-2009, 10:17 AM

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.
   
Reply With Quote
  (#3 (permalink)) Old
jx4245 Offline
New Member
 
Posts: 5
Join Date: Nov 2009
Model: -8820
PIN: N/A
Carrier: starhub
Default 11-01-2009, 09:46 PM

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
   
Reply With Quote
Reply


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





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.