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 int NOTIFICATION_ID_ALL_PLAYERS_PERSISTENT = 31337;
    public static final int NOTIFICATION_ID_INDIVIDUAL_PLAYERS = 31338;

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