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

Monday, April 16, 2012

simple Notification in Blackberry





  1. private static final long ID = 0x749cb23a75c60e2dL;


    //The toString value of this object will be displayed in the user's Profile settings.
    Object theSource = new Object()
            {
                public String toString()
                {
                    return "Simple Notification";
                }
            };


    //Register the notification.
    NotificationsManager.registerSource(ID, theSource, NotificationsConstants.IMPORTANT);

    //Alert notification..

    NotificationsManager.triggerImmediateEvent(ID, 0, null, null);
    Alert.startVibrate(150);





        

2 comments:

  1. How can we open a specific class by clicking it?

    ReplyDelete