Opening application from notification bar in blackberry

前端 未结 1 1977
面向向阳花
面向向阳花 2021-01-26 04:58

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

相关标签:
1条回答
  • 2021-01-26 05:20

    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.

    0 讨论(0)
提交回复
热议问题