cancel Notify id in Notification - Android Android OS

Android examples for Android OS:Notification Cancel

Description

cancel Notify id in Notification

Demo Code


//package com.java2s;

import android.app.NotificationManager;

import android.content.Context;

public class Main {
    public static void cancelNotify(Context context, int notifyid) {
        NotificationManager nm = (NotificationManager) context
                .getSystemService(Context.NOTIFICATION_SERVICE);
        nm.cancel(notifyid);/*from   ww w  .j a  v a2  s.  c o m*/
    }
}

Related Tutorials