Back to project page CATaZine-Live.
The source code is released under:
GNU General Public License
If you think the Android project CATaZine-Live 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 com.melegy.catazine.receiver; // w ww. j a v a2s . com import com.melegy.catazine.service.RefreshService; import com.melegy.catazine.utils.PrefUtils; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootCompletedBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { PrefUtils.putLong(PrefUtils.LAST_SCHEDULED_REFRESH, 0); if (PrefUtils.getBoolean(PrefUtils.REFRESH_ENABLED, true)) { context.startService(new Intent(context, RefreshService.class)); } } }