【问题标题】:BlackBerry Messages in notification bar issue通知栏中的 BlackBerry 消息问题
【发布时间】:2011-10-04 00:48:38
【问题描述】:

我试着用这个例子,

 //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, 补充

【问题讨论】:

    标签: blackberry notifications messages


    【解决方案1】:

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

    【讨论】:

    • 不,很遗憾,我在消息应用程序中看不到消息
    • 调试时看不到任何异常?您能否确认您调用的 DemoMessage 方法正在完整执行,还是提前失败但隐藏了异常?
    • 我调试了应用程序,没有任何异常。这是早些时候工作的。在我重新加载操作系统后它停止工作。
    • 我认为您真的应该阅读我在回答中发布的另一个主题,因为它们描述的问题完全相同。它很可能与您的应用程序“每次调用菜单项时创建一个新的 ReadableListImpl”有关。
    • 嗨,抱歉,我想我没有看对地方,我在消息应用程序中找到了该消息,但是如何将它带到主屏幕上的状态栏
    猜你喜欢
    • 2011-08-01
    • 2012-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-24
    • 1970-01-01
    • 2010-12-14
    相关资源
    最近更新 更多