我写了这段代码,在60秒内反复调用一个服务,但它会随时调用该服务,问题是什么人呢?
PendingIntent service = PendingIntent.getService(context, 0, i, PendingIntent.FLAG_CANCEL_CURRENT);
AlarmManager m = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
m.setRepeating(AlarmManager.RTC, System.currentTimeMillis(), (1000 * 60), service);