+package org.average.nfcauthcr;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
+
+import org.average.nfcauthcr.Check;
+
+public class Autostart extends BroadcastReceiver {
+
+ final String TAG = getClass().getName();
+
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ Log.v(TAG, "Autostart called");
+ Intent i = new Intent(context, Check.class);
+ i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ context.startService(i);
+ }
+}