Java tutorial
//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 { response = tech.transceive(cmd); } catch (IOException e1) { e1.printStackTrace(); return null; } return response; } }