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

Posts: 384
Registered: ‎08-12-2008
My Device: 8700

pushBlobalScreen issue.

Hi All,



I have two application run on same device.


and both them hold background thread, when something happen, it will pop up a dialog.


for example:


Application A, Application B,


first Application pop up a global dialog by using:


pushGlobalScreen(screenA, 0,GLOBALQUEUE);

after  screenA shows up,


Application B also pop a dialog

pushGlobalScreen(screenB, 0,GLOBALQUEUE);


Since Asceen has already shown up, it will block screenB show up, untill screen is dismissed.





Pop up screen code are same:



...... UiApplication.getUiApplication.invokerLater(new Runnable() public void run() { UiApplication.getUiApplication().pushGlobalScreen(screen,0,UiEngine.GLOBAL_QUEUE); } }); ..... dismiss Screen: synchronized(UiApplicatiopn.getEventLock()){ UiApplication.getUiApplication().popScreen(screen); } even if I used: synchronized(screen.getUiApplication().getEventLock()){ screen.getUiEngine.popScreen(screen); }



issue are:


when user click close screen button it will never disappear and the second one will not show up anymore.


if user pushs escape key, same thing happen.



but this souce code works good on 4.1, 4.2, 4.5, 4.6, 4.7. only does not work on 4.3 with 8330 device.


is there any body meets this problem?












BlackBerry Development Advisor
Posts: 15,871
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: pushBlobalScreen issue.

From where are you calling the pushScreen and popScreen methods?  Is this from within the invokeAction method of a ButtonField?  If so, you shouldn't need to hold the event lock when popping the screen.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.