Android AlarmManager setExact() is not exact

后端 未结 6 815
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 04:30

I need to plan sheduled task every 10 minutes.

As in Lollipop and higher version setRepeating() is inexact, I use setExact() and (on alarm

6条回答
  •  既然无缘
    2020-12-01 05:12

    You can call the method from support.v4:

    AlarmManagerCompat.setExact(...);
    

    The internal implementation contains checks by sdk version.

提交回复
热议问题