BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-26-2012, 10:23 AM   #1
citizenKane
New Member
 
Join Date: Mar 2012
Model: 8520
PIN: N/A
Carrier: lala
Posts: 3
Default Go back to application after finishing phone call

Please Login to Remove!

Hi, i am trying to go back to the application after placing a phone call. I place the call programatically, send some tones and finish the call. After that instead of going back to the screen from which i came from, i am sent to the phone calls list screen. My code is:

phoneCall.sendDTMFTones("12345#");

try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

EventInjector.KeyCodeEvent pressEndKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, 0,100);
EventInjector.KeyCodeEvent releaseEndKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, 0, 100);

EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);

}
EventInjector.KeyCodeEvent pressBackKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_BACKWARD, 0,100);
EventInjector.KeyCodeEvent releaseBackKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP, (char) Keypad.KEY_BACKWARD, 0, 100);
EventInjector.invokeEvent(pressBackKey);
EventInjector.invokeEvent(releaseBackKey);

any ideas on how to make this work? Thanks in advanced
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Go back to application after finishing phone call
Thread Thread Starter Forum Replies Last Post
Help BES itahack BES Admin Corner 2 05-30-2008 02:29 AM
Unlimited Text Messaging With your Data Plan !!! Ralph714 General 8100 Series Discussion - Pearl 32 03-09-2007 09:10 PM


Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16) picture

Dec/Adac Corp. D4-10390 Rev 6 Model 1664ATTL Output Pulse Board 1983 (B16)

$189.99



Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue picture

Niedermaier vintage Mannequins Visual Display Props Dec. 1991 Catalogue

$141.00



Zilog Circuit Board Vintage Intel Mac IBM Dec Computer Scrap picture

Zilog Circuit Board Vintage Intel Mac IBM Dec Computer Scrap

$100.00



Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc picture

Original New DEC Digital DCJ11-AE 57-19400-09 Vintage CPU x 1pc

$100.00



VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250 picture

VINTAGE Bruker Board DEC W4P3042 for SpectroSpin 250

$50.00



HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee picture

HSS 12pcs Valve Seat & Face Cutter 45dec 30dec 20dec for Vintage Car, Bikes ,Jee

$247.74







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