Back to project page Valybe.
The source code is released under:
Apache License
If you think the Android project Valybe 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.lybe; /*from w w w .ja va2 s . c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if(intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){ Intent bootActivityIntent=new Intent(context,PreActivity.class); bootActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(bootActivityIntent); } } }