public void writeMifareCard() {
this._receiveDataList = new ArrayList();
this._commandApduList = new ArrayList();
this._receiveCount = 0;
resetAll();
try {
this._commandType = COMMAND_TYPE.UPDATE_BLOCK;
byte[] dataToWrite = new byte[16];
System.arraycopy(Helper.stringToByteArray("SMARTACCESSAPP", 14), 0, dataToWrite, 0, 14);
this._mifare.updateBinaryBlock((byte) 4, dataToWrite, (byte) 16);
this._commandApduList.add(0, this._mifare.get_apdu().getCommand(false));
dataToWrite = new byte[32];
System.arraycopy(this._name, 0, dataToWrite, 0, this._name.length);
this._mifare.updateBinaryBlock((byte) 5, dataToWrite, (byte) 32);
this._commandApduList.add(1, this._mifare.get_apdu().getCommand(false));
this._acr1255.authenticate((byte) 8, KEYTYPES.ACR1281_KEYTYPE_A, (byte) 0);
this._commandApduList.add(2, this._acr1255.get_apdu().getCommand(false));
dataToWrite = new byte[16];
System.arraycopy(this._organization, 0, dataToWrite, 0, this._organization.length);
this._mifare.updateBinaryBlock((byte) 8, dataToWrite, (byte) 16);
this._commandApduList.add(3, this._mifare.get_apdu().getCommand(false));
dataToWrite = new byte[16];
System.arraycopy(this._position, 0, dataToWrite, 0, this._position.length);
this._mifare.updateBinaryBlock((byte) 9, dataToWrite, (byte) 16);
this._commandApduList.add(4, this._mifare.get_apdu().getCommand(false));
startCommandExecution();
} catch (Exception e) {
}
}