Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackberry Notification Message Issue
    primarykey
    data
    text
    <p>I am trying to make a notification message appear when I click the menu item, it shows me the indicator but I don't see the message, can someone explain where i did wrong : </p> <pre><code> private MenuItem AMenu = new MenuItem("Notify", 101, 10) { public void run() { ReadableListImpl mylist= new ReadableListImpl(); ApplicationMessageFolder folder = null; if(ApplicationMessageFolderRegistry.getInstance().getApplicationFolder(0x33c7ce29883abe5fL)==null){ folder = ApplicationMessageFolderRegistry.getInstance().registerFolder( 0x33c7ce29883abe5fL, "Test Folder", mylist ); }else { folder = ApplicationMessageFolderRegistry.getInstance().getApplicationFolder(0x33c7ce29883abe5fL); } //DemoMessage source is available in the messagelistdemo. DemoMessage msg = new DemoMessage("me@here.com", "Pizza Toppings","What would you like on your pizza?", System.currentTimeMillis()); mylist.addMessage(msg); folder.fireElementAdded(msg,true); System.out.println("nr of messages"+folder.hasNewMessages()); ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance(); EncodedImage image = EncodedImage.getEncodedImageResource("new.png" ); ApplicationIcon icon = new ApplicationIcon( image ); ApplicationIndicator indicator = reg.register( icon, false, true); ApplicationIndicator appIndicator = reg.getApplicationIndicator(); appIndicator.setIcon(icon); appIndicator.setValue(appIndicator.getValue() + 1); appIndicator.setNotificationState(true); appIndicator.setVisible(true);; } }; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload