Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.Notification;
import android.app.NotificationManager;

import android.content.Context;

public class Main {
    private static Notification mNotification;

    private static void notifyUpdate(Context ctx) {
        if (mNotification == null)
            return;
        NotificationManager nm = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);
        nm.notify(1, mNotification);
    }
}