List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Tuesday, February 5, 2013

Global Notification in Blackberry

The following code will alert a global notification-
final Bitmap image = Bitmap.getBitmapResource("your_image.png"); final Dialog screen = new Dialog(Dialog.D_OK_CANCEL, " your text to display",Dialog.OK,image,Manager.VERTICAL_SCROLL); final UiEngine ui = Ui.getUiEngine(); Application.getApplication().invokeAndWait(new Runnable() { public void run() { NotificationsManager.triggerImmediateEvent(0x222cb23a76e11c1dL, 0, null, null); ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE); } });



        

No comments:

Post a Comment