BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-03-2008, 10:29 PM   #1
skynetchris
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
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



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


10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v picture

10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v

$108.99



4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



QHE 4X32T8/UNV ISH-SC Sylvania 51347 4-Lamp T8 Instant Start Fluorescent Ballast picture

QHE 4X32T8/UNV ISH-SC Sylvania 51347 4-Lamp T8 Instant Start Fluorescent Ballast

$9.00



Metal Halide Ballast Kit 400W Multi 5 Tap 120V 208V 240V 277V 480V M59 picture

Metal Halide Ballast Kit 400W Multi 5 Tap 120V 208V 240V 277V 480V M59

$49.95



Inter-Global IG13-20EL electronic ballast 120v New Common Aquarium Light Ballast picture

Inter-Global IG13-20EL electronic ballast 120v New Common Aquarium Light Ballast

$19.95



Advance RS-2S110-2-TP Rapid Start Ballast picture

Advance RS-2S110-2-TP Rapid Start Ballast

$49.99







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