From 36414ea0b954ee563ac92f38a0a9242bab9cb603 Mon Sep 17 00:00:00 2001 From: Balint Kovacs Date: Fri, 25 Mar 2011 11:43:04 +0100 Subject: [PATCH] Initial support for on-boot startup Signed-off-by: Balint Kovacs --- src/hu/blint/ssldroid/BootStartupReceiver.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/hu/blint/ssldroid/BootStartupReceiver.java diff --git a/src/hu/blint/ssldroid/BootStartupReceiver.java b/src/hu/blint/ssldroid/BootStartupReceiver.java new file mode 100644 index 0000000..69387d2 --- /dev/null +++ b/src/hu/blint/ssldroid/BootStartupReceiver.java @@ -0,0 +1,14 @@ +package hu.blint.ssldroid; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +public class BootStartupReceiver extends BroadcastReceiver{ +@Override +public void onReceive(Context context, Intent intent) { + Intent serviceIntent = new Intent(); + serviceIntent.setAction("hu.blint.ssldroid.SSLDroid"); + context.startService(serviceIntent); +} +} \ No newline at end of file