BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-03-2008, 10:29 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Hiding out going call

Please Login to Remove!

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?

Last edited by skynetchris : 07-04-2008 at 12:03 AM.
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

Baldor VS1SP21-4B H2 INVERTER WASHDOWN DRIVE
$600.0
Baldor VS1SP21-4B H2 INVERTER WASHDOWN DRIVE  pictureNEW 1PCS WEINVIEW INVERTER AR100L-0015 AUTOMATION INDUSTRIAL USE PLC MODULE P E3
$344.95
NEW 1PCS WEINVIEW INVERTER AR100L-0015 AUTOMATION INDUSTRIAL USE PLC MODULE P E3 picture1PCS USED DISPLAY PANEL TOSHIBA INVERTER VFPS1 CHINESE PLC MODULE INDUSTRY Z6
$411.59
1PCS USED DISPLAY PANEL TOSHIBA INVERTER VFPS1 CHINESE PLC MODULE INDUSTRY Z6 pictureHITACHI AC DRIVE INVERTER 20HP 20 HP 15kW L300P-150HFU2
$399.0
HITACHI AC DRIVE INVERTER 20HP 20 HP 15kW L300P-150HFU2 pictureHitachi Inverter Model L300P 220HFU2 WITH Optional Conduit Box 30HP 43A 460V 3PH
$549.0
Hitachi Inverter Model L300P 220HFU2 WITH Optional Conduit Box 30HP 43A 460V 3PH picture






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