Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 64
Registered: ‎09-02-2008
My Device: 8830, 8100

get rid of PhoneAppScreen

Hi!

 

When I receive an incoming call, I would like to replace the  current Phone Application Screen (with 2 buttons "Receive" and "Reject") with a personalized screen... I have tried both:

 

 

synchronized (Application.getEventLock()) {

final UiEngine ui = Ui.getUiEngine();
UiApplication.getUiApplication().invokeLater(new Runnable(){
public void run(){
try{ ui.pushGlobalScreen(iAppCore.getPanel(), 100, UiEngine.GLOBAL_MODAL);
}
catch(Exception ex){
ex.printStackTrace();
}
}
});
}

 

 and

 

 

final UiEngine ui = Ui.getUiEngine();
UiApplication.getUiApplication().invokeLater(new Runnable(){
public void run(){
try{
UiApplication.getUiApplication().popScreen(ui.getActiveScreen());
}
catch(Exception ex){
ex.printStackTrace();
}
}
});

 

 The incoming call screen cannot be removed, replaced or modified ....

 

Any idea?

 

Best regards!

gunar

 

 

Developer
Posts: 64
Registered: ‎09-02-2008
My Device: 8830, 8100

Re: get rid of PhoneAppScreen

What I see is there are 2 screens: one is the popup "Incoming call", "Phone Number" and 2 buttons and there is the call logs screen... When I quesry the phone via Ui.getUiEngine().getActiveScreen(), it returns only one screen with nothing on top or below... When I inspect the resulting screen I get the elements from call logs screen... Nothing related to the active call screen ....

 

Any idea?

 

Br,

gunar

Developer
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: get rid of PhoneAppScreen

The incoming call screens is one of the 3 "special" global screens that cannot be overridden.  The incoming call, locked screen, and permissions prompts take a higher priority than any 3rd party application's global screens.  You can read more details here.
Kurt Zettel | Chief Architect | Metova
www.metova.com