BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Go back to application after finishing phone call (http://www.blackberryforums.com/developer-forum/258647-go-back-application-after-finishing-phone-call.html)

citizenKane 03-26-2012 11:23 AM

Go back to application after finishing phone call
 
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


All times are GMT -5. The time now is 05:34 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.