系统日期时间已经改变事件 [英] System datetime has changed event
问题描述
有什么办法来处理的Android的系统日期/时间的变化?
它的目标是,如果用户更改日期时间的目的,在限制时间,使应用程序的运行来控制应用程序的行为。
Is there any way to handle changes of system date/time on android? The goal of it is to control behavior of application if user changes datetime on purpose to make an app running during restrictive time.
推荐答案
有这些事件的广播。
ACTION_TIME_CHANGED和ACTION_DATE_CHANGED
There are broadcasts for those events. ACTION_TIME_CHANGED and ACTION_DATE_CHANGED
在<一个ACTION文档href=\"http://developer.android.com/reference/android/content/Intent.html#ACTION_DATE_CHANGED\">http://developer.android.com/reference/android/content/Intent.html#ACTION_DATE_CHANGED
一个潜在的错误和一些实施细节可以在<一个href=\"http://$c$c.google.com/p/android/issues/detail?id=2880\">http://$c$c.google.com/p/android/issues/detail?id=2880
A potential bug and some implementation details available at http://code.google.com/p/android/issues/detail?id=2880
这篇关于系统日期时间已经改变事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!