Back to project page Aether-s-Notebook-Android-Client.
The source code is released under:
GNU General Public License
If you think the Android project Aether-s-Notebook-Android-Client 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 aethers.notebook.core; /*from w w w .j av a2s. com*/ import aethers.notebook.util.Logger; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootReceiver extends BroadcastReceiver { private static final Logger logger = Logger.getLogger(BootReceiver.class); @Override public void onReceive(Context context, Intent intent) { if(!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) return; Configuration config = new Configuration(context); if(!config.isEnabled() || !config.isStartOnBoot()) return; logger.verbose("BootReceiver.onReceive(): Starting core service"); context.startService(new Intent(context, CoreService.class)); } }