Code example for NdefRecord

Methods: getId, getTnf, getType, toByteArray

0
	    recordsText.setText(records);					
	    messageCount.setText("NDEF Message Count " + this.ndefMessages.length);
		 
	} 
	private String makeRecordEntry(NdefRecord record) {
		byte[] byteArray = record.toByteArray();
		byte[] id = record.getId();
		short tnf = record.getTnf();
		byte[] type = record.getType();
		 
		String output = "Record Entry: \n" +
				"ID: " + Arrays.toString(id) + "\n" +
				"Type: " + Arrays.toString(type) + "\n" +
				"TNF: " + tnf + "\n" +
				"Full Record as byte[] \n" + 
				Arrays.toString(byteArray) + "\n";
		return output;
	} 
}