다른 시간에 알람을 설정하고 있습니다. particulat 알람을 삭제하고 싶습니다. Ex. 나는 diiferents 시간에 100 개의 알람을 설정 했으므로 2012 년 2 월 25 일 오전 10시 45 분에 알람을 삭제하고 싶습니다. 어떻게하면 돼?특정 알람 취소
알람을 설정하는 코드는 다음과 같습니다.
final AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
GregorianCalendar gc=new GregorianCalendar();
gc.set(2012, 1, 22, 10, 42,0);
Intent intent = new Intent(this, AlarmService.class);
gc.set(Calendar.AM_PM,0);
final PendingIntent sender = PendingIntent.getBroadcast(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);
am.set(AlarmManager.RTC_WAKEUP, gc.getTimeInMillis(), sender);
나는 경보를 수신하는 방송 수신기가 있습니다.
Stackoverflow를 검색하셨습니까?이 질문은 전에 답변 했습니까? – st0le