Monday, August 8, 2011

[android-developers] Action TIME_SET triggered after boot. Is it guaranteed?

Hi,

I have the broadcast receiver which is triggered upon the TIME_SET
action (please see below for the excerpt of the manifest). I've also
observed that the same receiver is triggered after boot. If the
systems sets the time after boot this behavior would make sense. Does
anybody know if this is a designed behavior and guaranteed to work in
this way, or do you think that this behavior might be different
depending on vendors? If this is a guaranteed behavior, then in my
case it won't be necessary to have a broadcast receiver for
BOOT_COMPLETED action.

<!-- Excerpt from manifest -->
<receiver android:name=".OnDateTimeChanged">
<intent-filter>
<action android:name="android.intent.action.TIME_SET"/>
</intent-filter>
</receiver>

Thank you in advance,
-Ali

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment