How to remove notification from notification bar programmatically in android?
Anybody have idea how can we remove notification from application programmatically which is called using Pending intent. I have used to cancel notification using following method. AlarmManager am=(AlarmManager)getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(Display.this, TwoAlarmService.class); PendingIntent pi = PendingIntent.getBroadcast(Display.this, AlarmNumber, intent, PendingIntent.FLAG_CANCEL_CURRENT); am.cancel(pi); But problem is notification which fired already that are not removed from notification bar. Thanks in advance... Maybe try this : NotificationManager