通知栏中的BlackBerry消息问题
我试着用这个例子通知栏中的BlackBerry消息问题,blackberry,notifications,messages,Blackberry,Notifications,Messages,我试着用这个例子 //Register the ApplicationMessageFolder //ReadableListImpl source is available in the messagelistdemo. ApplicationMessageFolder folder = ApplicationMessageFolderRegistry.getInstance().registerFolder( 0x33c7ce29883abe5fL, "Test Fo
//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);
我可以看到指示灯图标,但信息未显示
有人能告诉我怎么了吗
比尔,
供应似乎与您的问题有关。但是,在阅读您引用的教程时,您似乎没有在主屏幕上看到该消息,但如果您输入消息应用程序,您能否确认该消息是否在主屏幕上?没有,很遗憾,我在消息应用程序中没有看到该消息调试时,您没有看到任何异常?你能确认你调用的DemoMessage方法正在全部执行吗?还是它很早就失败了,但隐藏了一个异常?我调试了应用程序,没有发现任何异常。这在早些时候起作用。在我重新加载操作系统后,它停止了工作。我认为你真的应该阅读我在回答中发布的另一个线程,因为它们描述了与你完全相同的问题。这很可能与您的应用程序在每次调用菜单项时创建一个新的ReadableListImpl有关。嗨,对不起,我想我没有看到正确的位置,我在消息应用程序中找到了消息,但是我如何才能将其带到主屏幕上的状态栏