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: 60
Registered: ‎08-20-2009
My Device: Not Specified

Glbal screen modifictions?

Hello all,


I use the following global dialog to show up some message after user exited application and my app notified for checking some task.



synchronized( UiApplication.getEventLock() ) {
                                    UiEngine ui = Ui.getUiEngine();
                                    Screen screen = new Dialog(Dialog.D_OK, "My Message",
                                    Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
                                    ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);



I want to add Title of this dialog as my App Title, and Some message(already i'm giving that...) and remove the Exclamation or whatever default icon has given to this dialog. I don't want ANY ICON though in this dialog.


Could someone please suggest me if you have used it?


Thank you. Appreciate if you could help me out on this.



Posts: 94
Registered: ‎10-01-2009
My Device: Not Specified

Re: Glbal screen modifictions?

A Dialog doesn't have a title.  You could extend the Dialog (or PopupScreen) class to add one, if you like.


If you don't want an icon, pass null as the Bitmap parameter.