0

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.

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
cherry
  • 194
  • 2
  • 2
  • 11

1 Answers1

0

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.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • Thanks for reply.. I am able to open application from notification icon. while clicking my notification icon.. notification list field is coming with unread message count like .... MyAppName(1 unread).. Is it possible to Remove (1 unread) from the label. – cherry Nov 03 '11 at 10:35