Java tutorial
//package com.java2s; import java.io.IOException; import android.nfc.tech.NfcV; public class Main { public static byte[] getRT(NfcV tech) { byte[] getRTCmd = new byte[3]; getRTCmd[0] = (byte) 0x12; // flag getRTCmd[1] = (byte) 0xb0; // command getRTCmd[2] = (byte) 0x81; // command byte rsp[] = null; try { rsp = tech.transceive(getRTCmd); } catch (IOException e1) { e1.printStackTrace(); return null; } byte temp; for (int i = 0; i < 2; i++) { temp = rsp[i + 1]; rsp[i + 1] = rsp[4 - i]; rsp[4 - i] = temp; } return rsp; } }