Open wuyisheng opened 9 years ago
net.micode.notes.ui.AlarmReceiver 安装完,第一次设置时钟是准的,第二次有一点偏差,第三次开始就是延时5分钟,从此之后定时提醒不准
恩,代码貌似是有点问题,是帮学校一个搞ACM写的,后续没没有跟进。
这里alarm不是精确的 alarmManager.set(AlarmManager.RTC_WAKEUP, alertDate, pendingIntent); 现在很多厂商都有做alarm对齐的优化。 alarmManager.setExact 改用这个试试会不会更好一点。
net.micode.notes.ui.AlarmReceiver 安装完,第一次设置时钟是准的,第二次有一点偏差,第三次开始就是延时5分钟,从此之后定时提醒不准