get Notification Manager - Android Android OS

Android examples for Android OS:Notification

Description

get Notification Manager

Demo Code


//package com.java2s;

import android.app.NotificationManager;

import android.content.Context;

public class Main {
    public static NotificationManager getNotificationManager(
            Context mContext) {/* ww w .j a  v  a 2  s .com*/
        return (NotificationManager) mContext
                .getSystemService(Context.NOTIFICATION_SERVICE);
    }
}

Related Tutorials