Back to project page AndroidPageKiteApp.
The source code is released under:
GNU General Public License
If you think the Android project AndroidPageKiteApp 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 net.pagekite.app; /* w w w . j a v a2 s . c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; public class BootHandler extends BroadcastReceiver { @Override public void onReceive(Context ctx, Intent ntnt) { SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(ctx); if (p.getBoolean("startOnBoot", false) && p.getBoolean("enablePageKite", false)) { ctx.startService(new Intent(ctx, Service.class)); } } }