You need to specify the FLAG_AUTO_CANCEL in the Notification.flags field: http://code.google.com/android/reference/android/app/Notification.html#FLAG_AUTO_CANCEL
Christoph On Tue, Feb 10, 2009 at 10:22 PM, Mariano Kamp <mariano.k...@gmail.com> wrote: > Hi, > > I am wondering how you would cancel a notification when you are not the > party executing the associated Intent. > > For example, think about an Intent like ACTION_VIEW and a data/url like > http://google.com. This intent is then wrapped into a PendingNotification > and used by a notification. So when the user clicks on the notification the > intent is fired, the browser opens, but the notification is not cancelled. > As my code is not the receiver of the Intent how should I cancel it? > > Cheers, > Mariano > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---