ApplicationDirectory applicationDirectory = readerWriter.createApplicationDirectory(new MadKeyConfig(Key.A,
MfConstants.TRANSPORT_KEY, writeKey));
TrailerBlock readWriteTrailerBlock = ClassicHandler.createReadWriteDataTrailerBlock();
readWriteTrailerBlock.setKey(Key.A, writeKey);
readWriteTrailerBlock.setKey(Key.B, writeKey);
Application application = applicationDirectory.createApplication(MfConstants.NDEF_APP_ID,
applicationDirectory.getMaxContinousSize(), writeKey, readWriteTrailerBlock);
return application;
}
catch (IOException e) {
throw new NfcException(e);