Android Open Source - rfid_front_door Open Receiver

From Project

Back to project page rfid_front_door.


The source code is released under:

GNU General Public License

If you think the Android project rfid_front_door 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

//from   ww  w .j  av  a  2  s. c o m
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OpenReceiver extends BroadcastReceiver {

    private static final String TAG = OpenReceiver.class.getSimpleName();

    public static String ACTION_OPEN_DOOR = "";

    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "received intent " + intent);

        if (ACTION_OPEN_DOOR.equals(intent.getAction())) {

            context.startService(new Intent(context, ArduinoConnectService.class)

Java Source Code List