I am creating an application which has a notification icon on the status bar of the BlackBerry home screen. I want to launch my app when this notification icon is clicked.
I am able to create a notification icon in the status bar with ApplicationIndicator, but I am not able to register a click handler to launch the application.
In Blackberry OS 6.0 we have a new API which can be used for launching an app from the notification bar. Here is an example:
Where
DemoMessageandReadableListimplare classes from Blackberry 6.0’sMessageListDemosample app.For reference, see also this related question: Opening application from notification bar in blackberry.