Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.NotificationManager;

import android.content.Context;

public class Main {
    public static final String VSHOW_TAG = "VSHOW";

    public static void cancel(Context context, String tag, int id) {
        NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
        nm.cancel(tag, id);
    }

    public static void cancel(Context context, int id) {
        cancel(context, VSHOW_TAG, id);
    }
}