更新时间:2023-02-04 20:16:54
我可能回答这个问题很晚,但是我个人也遇到了同样的问题。对于日期更改,您可以简单地将广播接收器与动作 android.intent.action.DATE_CHANGED一起使用,并且只要更改日期(由用户隐式或显式),它将触发。我希望这会对通过Google到达这里的人有所帮助。
I might be late answering this question, but I personally faced the same problem. For day change, you can simply use a broadcast receiver with action "android.intent.action.DATE_CHANGED", and it will trigger whenever the date is changed (either implicitly or explicitly by user). I hope this will help someone who gets to here through Google.