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: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

How can I pop Global PopupScreen

HI,

 

What I have done in my application is:

 

1.) I am pushing a global PopupScreen from background application.

 

                    synchronized(Application.getApplication().getEventLock() ){    
                                UiEngine ui = Ui.getUiEngine();
                                MyScreen screen = new MyScreen()
                                ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
                            }

 

2.) Added KeyListener to this screen.

3.) If user presses any Key, I am getting its event.

4.) Now, I want to remove this screen from top of the stack.

 

 

Thanks,

Kanak

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How can I pop Global PopupScreen

And popScreen doesn't work?

Highlighted
Developer
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: How can I pop Global PopupScreen

You can also call the screen's onClose() method. That checks whether it is okay to close the screen (basically, whether there are unsaved changes), then calls popScreen().

 

It doesn't sound like you need that extra functionality, but I thought I'd mention it.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.