Android Open Source - rfid_front_door Open Receiver






From Project

Back to project page rfid_front_door.

License

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

package info.staticfree.android.taguid;
//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 = "info.staticfree.android.taguid.ACTION_OPEN_DOOR";

    @Override
    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)
                    .setAction(ACTION_OPEN_DOOR));
        }
    }
}




Java Source Code List

com.example.android.BluetoothChat.DeviceListActivity.java
edu.mit.mobile.android.greenwheel.BluetoothService.java
info.staticfree.android.taguid.ArduinoConnectService.java
info.staticfree.android.taguid.ContactIdProvider.java
info.staticfree.android.taguid.ContactId.java
info.staticfree.android.taguid.ContactUtils.java
info.staticfree.android.taguid.DoorOpenWidget.java
info.staticfree.android.taguid.OnDoorResultListener.java
info.staticfree.android.taguid.OpenReceiver.java
info.staticfree.android.taguid.RfidAdapter.java
info.staticfree.android.taguid.RfidRecord.java
info.staticfree.android.taguid.TagUidActivity.java