Android Open Source - AndroidPageKiteApp Boot Handler






From Project

Back to project page AndroidPageKiteApp.

License

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.

Java Source Code

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));
    }
  }
}




Java Source Code List

net.pagekite.app.BootHandler.java
net.pagekite.app.HelpViewer.java
net.pagekite.app.LogViewer.java
net.pagekite.app.Preferences.java
net.pagekite.app.Service.java
org.xmlrpc.android.Base64Coder.java
org.xmlrpc.android.IXMLRPCSerializer.java
org.xmlrpc.android.MethodCall.java
org.xmlrpc.android.Tag.java
org.xmlrpc.android.XMLRPCClient.java
org.xmlrpc.android.XMLRPCCommon.java
org.xmlrpc.android.XMLRPCException.java
org.xmlrpc.android.XMLRPCFault.java
org.xmlrpc.android.XMLRPCSerializable.java
org.xmlrpc.android.XMLRPCSerializer.java
org.xmlrpc.android.XMLRPCServer.java