List of usage examples for android.app NotificationManager cancel
public void cancel(int id)
From source file:Main.java
public static void cancelNotification(Context ctx, int notifyId) { String ns = Context.NOTIFICATION_SERVICE; NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns); nMgr.cancel(notifyId); }
From source file:Main.java
public static void cancelNotification(Context ctx) { String ns = Context.NOTIFICATION_SERVICE; NotificationManager nMgr = (NotificationManager) ctx.getSystemService(ns); nMgr.cancel(NOTIFY_ID); }
From source file:Main.java
public static void cancelNotification(Context context) { NotificationManager nMgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); nMgr.cancel(REPLY_NOTIFY_ID); }
From source file:Main.java
public static void removeNotification(Context context, int id) { NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); manager.cancel(id); }
From source file:Main.java
public static void dismissNotification(Context context, int id) { NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); manager.cancel(id); }
From source file:Main.java
public static void cancelNotifycation(Context context, int notifyID) { NotificationManager notifManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); notifManager.cancel(notifyID); }
From source file:Main.java
/** Cancel the ongoing notification that controls the connection state and play/stop*/ public static void cancelNotification(Context context, int id) { NotificationManager mNotifyMgr = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); mNotifyMgr.cancel(id); }
From source file:Main.java
/** * This method stops the tracking notification for the user. * /*from w w w. ja va2 s .c om*/ * @param activity * The activity from which the method called. */ public static void stopUserNotification(Activity activity) { String ns = Context.NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) activity.getSystemService(ns); mNotificationManager.cancel(TRACKING_NOTIFY_ID); }
From source file:Main.java
public static void cancelNotification(Context context, int notificationId) { NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(notificationId); }
From source file:Main.java
static public void cleanNotification(Context context) { NotificationManager notificationManager = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(1); }