get AlarmManager from Context - Android Android OS

Android examples for Android OS:Alarm Information

Description

get AlarmManager from Context

Demo Code


//package com.java2s;
import android.app.AlarmManager;

import android.content.Context;

public class Main {
    private static AlarmManager getAlarmManager(Context context) {
        return (AlarmManager) context
                .getSystemService(Context.ALARM_SERVICE);
    }/*from   w ww.j a  v a  2  s . c o  m*/
}

Related Tutorials