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
New Developer
bearc0025
Posts: 3
Registered: ‎01-28-2009
My Device: Not Specified
Accepted Solution

pushscreen on Curve/Storm

I'm trying to push a progress bar over the currently displayed screen with:

 

synchronized(Application.getEventLock()) {
      getUiEngine().pushScreen(screen);
}

 

I've tried some of the various variations like using:

UiApplication.getEventLock

and

UiApplication.getUiApplication().pushScreen(screen);

 

They all display over the current screen on the Pearl simulator, but not on Curve or Storm. On those, they blank out the screen except for the area defined by the pushed "screen."

 

Thanks in advance for any help!

Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: pushscreen on Curve/Storm

Best way to do this is add a GuageField to a PopupScreen and pushModal(). The PopupScreen will only take up as much real-estate as the GuageField, so your top screen would still be visible behind the popup.

 

 

 

New Developer
bearc0025
Posts: 3
Registered: ‎01-28-2009
My Device: Not Specified

Re: pushscreen on Curve/Storm

Thanks for the help. I just extended PopupScreen instead of Screen that that mostly did the trick.