0
알람 관리자가 알림을 실행하기 위해 Android 앱을 개발했습니다. 지금은 내가이 코드를보고 알림을 발사 한 알람을 취소하고 싶지만 내가 한 알람을 삭제할 수있는 방법을 모든 알람 내가 cancel의 의사는 말한다어떻게 모든 알람이 아닌 하나의 알람을 삭제할 수 있습니까?
Intent intent = new Intent(this, AlarmReceive.class);
PendingIntent sender = PendingIntent.getBroadcast(this,
0, intent, 0);
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
// this line for cancellation
alarmManager.cancel(sender);