来看这篇帖子的应该是遇到一样的问题了吧
我先来描述一下现象。
1,日期往前变化是不会发送该广播
2,日期自然过度到第二天,也不会发送该广播
分析一下原因:
我没有找到源码,但是据我分析,就是最底层设计的时候就是存在这个问题,他们也觉得必要性不大,就没有做处理。
解决方案:
1,通过监听ACTION_TIME_TICK,存储当前时间,每次接受到广播比较日期的变化,若有变化,则广播被触发。
解决了第2点的问题。
来看这篇帖子的应该是遇到一样的问题了吧
我先来描述一下现象。
1,日期往前变化是不会发送该广播
2,日期自然过度到第二天,也不会发送该广播
分析一下原因:
我没有找到源码,但是据我分析,就是最底层设计的时候就是存在这个问题,他们也觉得必要性不大,就没有做处理。
解决方案:
1,通过监听ACTION_TIME_TICK,存储当前时间,每次接受到广播比较日期的变化,若有变化,则广播被触发。
解决了第2点的问题。