Android Alarm Cancel cancelAlarm(PendingIntent intent, Context context)

Here you can find the source of cancelAlarm(PendingIntent intent, Context context)

Description

cancel Alarm

License

Open Source License

Declaration

public static void cancelAlarm(PendingIntent intent, Context context) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.app.AlarmManager;
import android.app.PendingIntent;

import android.content.Context;

public class Main {
    public static void cancelAlarm(PendingIntent intent, Context context) {
        AlarmManager am = (AlarmManager) context
                .getSystemService(Context.ALARM_SERVICE);
        am.cancel(intent);/* ww  w  . ja va  2 s. c  o  m*/
    }
}

Related

  1. cancelAlarm(Context context, int index, String action)
  2. cancelAlarmManager(Context context, PendingIntent pendingIntent)
  3. cancel(Context context, Intent broadcastIntent, int requestCode)
  4. cancelAlarm(Context context, Class clazz, int flags)
  5. unsetAlarm(Context context, Intent intentBroadcast)