Sunday 15 July 2012

notifications - Android remove notifcation by code -


As the title, I would like to delete the notification by code, but I can not get it to work Trying to do all (); What is happening is that the notification gets removed like a second and it comes back. Is it confusing anyone know the way to solve this issue?

Best regards to HFHerasen

Each notification is a unique ID, You can cancel your notice by notification.

  killNotificationBar public (reference c, int id) {NotificationManager mNotificationManager = (NotificationManager) c.getSystemService (NOTIFICATION_SERVICE); MNotificationManager.cancel (ID); }    

No comments:

Post a Comment