且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从通知栏打开黑莓应用程序

更新时间:2023-01-01 17:39:31

看一看以下类:

ApplicationMessageFolder
ApplicationMessageFolderRegistry

和以下接口:

ApplicationMessage
ApplicationMessageFolderListener

中注册文件夹为您的应用程序,添加一个监听器的文件夹,并使用 AppicationMessageFolder.fireElementAdded()方法状态信息添加到文件夹。当用户点击通知栏上,消息应用程序中显示可用的文件夹及其内容。当用户点击您的状态消息之一,该文件夹的监听器会通知您的应用程序,因此它可以做出相应的反应。

Register a folder for your app, add a listener to the folder, and use the AppicationMessageFolder.fireElementAdded() method to add status messages to the folder. When the user clicks on the notification bar, the Messages app displays the available folders and their contents. When the user clicks on one of your status messages, the folder's listener will notify your app so it can react accordingly.