Back to project page timesync.
The source code is released under:
Apache License
If you think the Android project timesync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.tatarka.timesync.lib; //from ww w . ja v a2 s . c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class TimeSyncBootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { TimeSyncService.start(context); } public static void enable(Context context) { ReceiverUtils.enable(context, TimeSyncBootReceiver.class); } public static void disable(Context context) { ReceiverUtils.disable(context, TimeSyncBootReceiver.class); } }