How to make Main Screen transparent in BlackBerry?

I want to create an application in which I want to get a dialog when some event occurs. I am able to get the Dialog but behind that I am getting a white screen. I don't want that screen. Is there any way to make that screen transparent?

public final class LoadingPopupScreen extends PopupScreen
{ Background background; HorizontalFieldManager hfm; int width; int height; public LoadingPopupScreen( int width, int height) { super(new VerticalFieldManager()); background = BackgroundFactory.createLinearGradientBackground(Color.ROYALBLUE, Color.BLACK, Color.ROYALBLUE, Color.BLACK); setBackground(background); add(new LabelField("ROAMING")); add(new SeparatorField()); add(new SeparatorField()); hfm = new HorizontalFieldManager(); Bitmap bitmap = Bitmap.getBitmapResource("splash.png"); BitmapField bit= new BitmapField(bitmap); hfm.add(bit); hfm.add(new LabelField("want to check In Roaming or not?")); add(hfm); hfm = new HorizontalFieldManager(Manager.FIELD_HCENTER); ButtonField ok = new ButtonField("OK", HorizontalFieldManager.FIELD_HCENTER); ButtonField cancel = new ButtonField("CANCEL", HorizontalFieldManager.FIELD_HCENTER); hfm.add(ok); hfm.add(cancel); add(hfm); }
}
5

1 Answer

i have done it using:

Ui.getUiEngine().pushGlobalScreen(new LoadingPopupScreen(300,300), 0, UiEngine.GLOBAL_QUEUE);

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like