05-19-2011 08:05 AM
Hi all,
I am developping a rather basic app similar to a phone directory. It is possible to view the details of a contact and place a call to him using a pushbutton.
I am placing the call this way :
public void call(String number) {
PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL,
number);
Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs);
}It works fine, but at the end of the call the phone interface remains on the foreground. I can't figure out how I can bring my application on the foreground.
My application is supposed to work on various OS, starting from 4.2.
Thanks in advance for your help.
Solved! Go to Solution.
05-19-2011 08:18 AM
05-19-2011 08:30 AM
I have tried to use a phone listener :
public void callDisconnected(int callId) {
UiApplication.getUiApplication().requestForeground ();
}
But it has no effect although this method is executed when the calls end. Am I mising something ?
05-19-2011 08:37 AM
05-19-2011 08:58 AM
Thanks for your help, it works !
For anybody who would have the same issue, I found an example for GlobalEvents here : http://www.blackberry.com/knowledgecenterpublic/li