Here you can find the source of setupAlarmManager(Context context, long minutesInMillis, PendingIntent pendingIntent)
public static void setupAlarmManager(Context context, long minutesInMillis, PendingIntent pendingIntent)
//package com.java2s; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; public class Main { public static void setupAlarmManager(Context context, long minutesInMillis, PendingIntent pendingIntent) { AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); alarmManager//from w w w .j a va 2 s . c o m .set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + minutesInMillis, pendingIntent); } }