public void alarm(long time) {
  Date t = new Date();
  t.setTime(time + 60 * 1000);
  Intent intent = new Intent(mContext.getApplicationContext(),
    WorkOrderAlarmReceiver.class);
  PendingIntent sender = PendingIntent.getBroadcast(mContext, 0, intent, 0);
  AlarmManager am = (AlarmManager) mContext
    .getSystemService(Context.ALARM_SERVICE);
  am.set(AlarmManager.RTC_WAKEUP, t.getTime(), sender);
 }


제가 이런식으로 시간을 받아들여서 1분후에 알람이 울리게끔 알람에 등록했했습니다. 그리구 PendingIntent로 WorkOrderAlarmReceiver로 보낸다음 리시버에서는 Notification으로 통지 하게끔 구현해놨습니다.

여기서 제가 다음으로 하려는게.. 알람이 등록된후에 1분이 지나면 알람이 울리자나용~

그중간에 알람이 울리기전에 버튼을 클릭하면 그 알람이 종료되는 것을 구현하고 싶은데요..

AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);

am.cancel() <------ 이 함수가 알람을 종료하는것 같은데..

어떻게 사용해서 종료하죠?ㅠ 음..잘 모르겠어요..;;  고수분들 도와주세요~ㅠㅠ