Hi guys,
I have an application that can successfully make an outgoing call once an sms has been sent to it with the keyword 'call, phone#". This works fine:
Code:
Invoke.invokeApplication( Invoke.APP_TYPE_PHONE, new PhoneArguments( PhoneArguments.ARG_CALL, phonenum));
The problem comes when i want to hide the outgoing call screen. There has been a
similar post which was able to hide an INCOMING screen.
So, when the app is triggered to make a call, it stops any new screens being painted & makes the call. Then it allows screens to be painted again. However, this doesn't seem to work, it stops the call screen popping up, but stop the app from making the call?:
Code:
//Halt all new screens and try to push this apps screen on top of stack
UiApplication.getUiApplication().pushGlobalScreen(MyAPP.this.screen, 0, UiEngine.GLOBAL_MODAL);
Screen activeScreen = MyAPP.this.getUiApplication().getActiveScreen();
activeScreen.getUiEngine().suspendPainting(true);
//Make call
Invoke.invokeApplication( Invoke.APP_TYPE_PHONE, new PhoneArguments(
PhoneArguments.ARG_CALL, phonenum));
activeScreen = MyAPP.this.getUiApplication().getActiveScreen();
if(activeScreen.getUiEngine().isPaintingSuspended()){
activeScreen.getUiEngine().suspendPainting(false);
}
activeScreen.doPaint();
any ideas/thoughts?