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