通知栏中的BlackBerry消息问题

时间:2011-07-12 21:44:43

标签: blackberry notifications messages

我试图使用这个例子,

 //Register the ApplicationMessageFolder
 //ReadableListImpl source is available in the messagelistdemo.
 ApplicationMessageFolder folder =      ApplicationMessageFolderRegistry.getInstance().registerFolder(
    0x33c7ce29883abe5fL, "Test Folder", new ReadableListImpl());

//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());
folder.fireElementAdded(msg);

//Display the application indicator icon.
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();    

 EncodedImage image = EncodedImage.getEncodedImageResource("Indicator.png");

 ApplicationIcon icon = new ApplicationIcon(image);

 ApplicationIndicator indicator = reg.register(icon, false, true);
 indicator.setIcon(icon);
 indicator.setVisible(true);

我能看到指示标志图标,但信息未显示。

有人可以告诉我什么错了吗?

BR, Suppi

1 个答案:

答案 0 :(得分:0)

This question似乎与您的问题相关。但是,阅读您引用的tuturial(here)似乎您没有在主屏幕上看到该消息但是如果您输入消息应用程序,您是否可以确认它在那里?