Java tutorial
//package com.java2s; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; public class Main { public static void stopAlarm(AlarmManager manager, Context context, Class reciverClsss) { Intent intent = new Intent(context, reciverClsss); PendingIntent pintent = PendingIntent.getBroadcast(context, 0, intent, 0); manager.cancel(pintent); } }