我有两个警报:
pendingIntent = PendingIntent.getBroadcast(context, 1001, intent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.set(alarmType, cal.getTimeInMillis(), pendingIntent); //1
alarmManager.set(alarmType, cal.getTimeInMillis()-delaytime, pendingIntent); //2
我想取消闹钟:
pendingIntent = PendingIntent.getBroadcast(context, 1001, intent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.cancel(pendingIntent);
歧义是哪个警报被删除,1 还是 2?