Opening application from notification bar in blackberry

不问归期 提交于 2019-12-02 17:58:12

问题


For my application I need to creat an icon in notification bar.I am able to do this. My problem is I need to open this application from notification bar. When ever user selects notification screen my app status should display. when user selects my app my application should open directly.


回答1:


Have a look at the following classes:

ApplicationMessageFolder
ApplicationMessageFolderRegistry

And the following interfaces:

ApplicationMessage
ApplicationMessageFolderListener

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.



来源:https://stackoverflow.com/questions/7967126/opening-application-from-notification-bar-in-blackberry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!