cancel Notification - Android Android OS

Android examples for Android OS:Notification Cancel

Description

cancel Notification

Demo Code


//package com.java2s;

import android.app.NotificationManager;

import android.content.Context;

public class Main {
    public static void cancelNotifycation(Context context, int notifyID) {
        NotificationManager notifManager = (NotificationManager) context
                .getSystemService(Context.NOTIFICATION_SERVICE);
        notifManager.cancel(notifyID);//www. j  a  va  2s.  c o  m
    }
}

Related Tutorials