alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,
startingTime, App.SYNC_DATA_FREQUENCY,
dataSyncServicePendingIntent);
如果startingTime
已经过去会发生什么。当它应该被解雇时,警报是否会触发前一次?
答案 0 :(得分:1)
警报将立即触发。
正如documentation所述:
If the stated trigger time is in the past, the alarm will be triggered immediately,
with an alarm count depending on how far in the past the trigger time is relative to the repeat interval.