Back to project page TriggerStick-Android.
The source code is released under:
GNU General Public License
If you think the Android project TriggerStick-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/****************************************************************************** * FILE: BootReceiver.java/* w w w. ja v a 2 s. c o m*/ ******************************************************************************/ package com.triggerstick; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.oceusnetworks.divt_uploader.DebugLog; import com.oceusnetworks.divt_uploader.SecureUploader; public class BootReceiver extends BroadcastReceiver { boolean started = false; @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { started = true; Intent intentForService = new Intent(context, ButtonCheck.class); context.startService(intentForService); } } }