clear All Notify Notification - Android Android OS

Android examples for Android OS:Notification

Description

clear All Notify Notification

Demo Code


import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationManagerCompat;
import android.support.v7.app.NotificationCompat;
import android.text.TextUtils;

public class Main{
    //w  w w.j  a  va2 s .c  o  m
    public static void clearAllNotify(
            NotificationManagerCompat mNotificationManager) {
        mNotificationManager.cancelAll();
    }
}

Related Tutorials