Example usage for android.app NotificationManager cancelAll

List of usage examples for android.app NotificationManager cancelAll

Introduction

In this page you can find the example usage for android.app NotificationManager cancelAll.

Prototype

public void cancelAll() 

Source Link

Document

Cancel all previously shown notifications.

Usage

From source file:Main.java

public static void clearNotification(NotificationManager nm) {
    nm.cancelAll();
}

From source file:Main.java

public static void CancelNotification(Context context) {
    NotificationManager nMgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    nMgr.cancelAll();
}

From source file:Main.java

public static void logout(Context context) {
    SharedPreferences preferences = context.getSharedPreferences("MyPrefs", Context.MODE_PRIVATE);
    SharedPreferences.Editor editor = preferences.edit();
    editor.clear();/*  w  w w.j ava2s. c om*/
    editor.commit();
    NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    manager.cancelAll();
}

From source file:Main.java

public static void cancellAllNotifications(Context context) {
    NotificationManager mNotifyMgr = (NotificationManager) context
            .getSystemService(Context.NOTIFICATION_SERVICE);
    mNotifyMgr.cancelAll();
}

From source file:Main.java

public static void clearNotifications(Context context) {
    NotificationManager notificationManager = (NotificationManager) context
            .getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.cancelAll();
}

From source file:Main.java

public static void clearNotifications(Context mContext) {
    NotificationManager notificationManager = (NotificationManager) mContext
            .getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.cancelAll();
}

From source file:Main.java

public static void cancelAllNotifications(@NonNull Context context) {
    NotificationManager notificationManager = (NotificationManager) context
            .getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.cancelAll();
}

From source file:ezy.assist.app.NotifyUtil.java

public static void cancelAll(Context context) {
    NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    manager.cancelAll();
}

From source file:org.protocoderrunner.base.BaseNotification.java

public static void killAll(Context ctx) {
    NotificationManager notifManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);
    notifManager.cancelAll();
}

From source file:com.example.android.background.utilities.NotificationUtils.java

public static void clearAllNotifications(Context context) {
    NotificationManager notificationManager = (NotificationManager) context
            .getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.cancelAll();
}