BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-26-2007, 09:13 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Model: 8100
Carrier: TMobile
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default EventInjector to answer incoming phone call

Please Login to Remove!

I am trying to write a background application for the BlacKBerry Pearl that automatically answers an incoming call. After doing a lot of research, it appears the only way to do so is via the EventInjector.

When the PhoneListener.incomingCall(int callId) listener method is called, I issue the following events via the EventInjector. However, the incoming call dialog appears never to receive the events even though I have tested this logic works in my application. Is there something I am missing? Do I somehow have to get a handle to the incoming phone call dialog to issue these commands? Any help iis appreciated. Thanks!

Code:
EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_MOVEMENT , 0, -1,TrackwheelListener.STATUS_TRACKWHEEL ));
EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_CLICK  , 0, 0,TrackwheelListener.STATUS_TRACKWHEEL ));
EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_UNCLICK EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_CLICK  , 0, 0,TrackwheelListener.STATUS_TRACKWHEEL ));
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

Tektronix TLA714 Portable Color Logic Analyzer Mainframe with 4M TLA7N4 2GHz
$489.0
Tektronix TLA714 Portable Color Logic Analyzer Mainframe with 4M TLA7N4 2GHz pictureHP Agilent 70001A 8-Slot Spectrum Analyzer Mainframe +70611A Switch Module
$299.99
HP Agilent 70001A 8-Slot Spectrum Analyzer Mainframe +70611A Switch Module pictureTektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4
$5799.99
Tektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4 pictureHP Agilent 70001A 8-Slot Spectrum Analyzer Mainframe +2 70611A Switch Modules
$399.99
HP Agilent 70001A 8-Slot Spectrum Analyzer Mainframe +2 70611A Switch Modules pictureTektronix TLA7016 Logic Analyzer Benchtop Mainframe TLA7AA4,TLA7P2 Opt.19 #TQ348
$3200.0
Tektronix TLA7016 Logic Analyzer Benchtop Mainframe TLA7AA4,TLA7P2 Opt.19 #TQ348 picture






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