ACTION_TIME_CHANGED或ACTION_DATE_CHANGED,不能让他们的工作 [英] ACTION_TIME_CHANGED or ACTION_DATE_CHANGED, can't make them work
问题描述
所以我在试图得到一些意图为我工作的过程中,
和我有2特定意图的问题。我搜索这些群体
并网,并可以'T似乎找不到任何比什么信息
文件给我。
这似乎并不重要,如果我声明在使用这些意图
清单,或者如果我尝试注册在code接收器,接收器我
从未接收ACTION_TIME_CHANGED或行动
ACTION_DATE_CHANGED。
至于我可以告诉我应该会在收到这些行动我
广播接收机每当用户明确设定的时间/日期
进入设置 - >日期和放大器;时间,然后修改时间或
日期
上午我错间preting什么这些行动是什么?
是否有我需要以收到申报任何权限
这些行动?
是否有人与此行动的工作?
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 to find any more information than what the documentation gives me. It doesn't seem to matter if I declare the use of these intent in the manifest, or if I try to register a receiver in code, my receiver never receives the actions for ACTION_TIME_CHANGED or ACTION_DATE_CHANGED. As far as I can tell I should be receiving these actions in my broadcast receiver whenever the user explicitly sets the time/date by going to "Settings" --> "Date & Time" and then modifying the time or date Am I mis-interpreting what these actions are for? Are there any permissions that I need to declare in order to receive these actions? Does anybody worked with this actions ?
有没有在那里这动作时,我无法找到任何有用的一些有用的例子,有很多的格式变化的例子,但不是实际的变化TIME_DATE ...
Is there some useful example where this actions are used, I could not find anything useful, there is plenty of examples of format change but not on actual time_date change...
在此先感谢
推荐答案
在除<意向滤光器>
,见<一href=\"http://stackoverflow.com/questions/21758246/android-action-date-changed-broadcast/21980389\">Android ACTION_DATE_CHANGED广播了解的AOSP错误: ACTION_TIME_CHANGED
当时钟被设定应该解雇和 ACTION_DATE_CHANGED
应该火的时候,时钟滴答到第二天,但如果时钟被设置反了, ACTION_DATE_CHANGED
不会再次,直到时钟发生了什么事情,第二天赶上火
In addition to the <intent-filter>
, see Android ACTION_DATE_CHANGED broadcast about an AOSP bug: ACTION_TIME_CHANGED
should fire when the clock gets set and ACTION_DATE_CHANGED
should fire when the clock ticks over to the next day, but if the clock gets set backwards, ACTION_DATE_CHANGED
won't fire again until the clock catches up with what was going to be the next day.
这篇关于ACTION_TIME_CHANGED或ACTION_DATE_CHANGED,不能让他们的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!