execute NFC Command - Android Network

Android examples for Network:NFC

Description

execute NFC Command

Demo Code


//package com.java2s;
import java.io.IOException;
import android.nfc.tech.NfcV;

public class Main {
    public static byte[] executeCommand(NfcV tech, byte[] cmd) {
        byte response[];
        try {/*from   w  ww.  j  a va2s. c o  m*/
            response = tech.transceive(cmd);
        } catch (IOException e1) {
            e1.printStackTrace();
            return null;
        }
        return response;
    }
}

Related Tutorials