ACTION_TIME_CHANGED or ACTION_DATE_CHANGED, can't make them work

前端 未结 6 1350
小鲜肉
小鲜肉 2021-01-14 12:43

So I am in the process of trying to get a few intents to work for me, and am having problems on 2 specific intents. I searched these groups and the webs and can \'t seem

6条回答
  •  醉梦人生
    2021-01-14 13:00

    Intent.ACTION_DATE_CHANGED and Intent.ACTION_TIME_CHANGED are triggered only when the user manually changes time or date, and they are not automatically triggered by the system.

    I fear you have to use Intent.ACTION_TIME_TICK, which is triggered by the system exactly each minute.

提交回复
热议问题