Action TIME_SET in android getting called many times without changing the time manually

前端 未结 2 630
天命终不由人
天命终不由人 2021-01-02 07:31

I have a receiver which listens to the TIME_SET action android.

but some times am getting intent action without changing the time (random issue)

please help

2条回答
  •  灰色年华
    2021-01-02 08:36

    I also had this same issue. It appears that if your device has the "Use network provided time" checked the device will periodically update the time. It seems like if the time is updated even for the smallest of time corrections the TIME_SET broadcast will happen... I wish that there was some threshold parameter that could be checked/used so that these minor time corrections are broadcast, or that there was a different broadcast for when the user explicitly changed the time versus the device was correcting itself.

提交回复
热议问题