Android Read/Write to Multiple Records NDEF NFC
问题 I'm trying to write and read to/from multiple records in a NDEFMessage. Is my code here right? Also, my process terminates itself when I'm reading the tag. I'm not sure where I went wrong.. Writing part: private NdefMessage getTagAsNdef() { String text123="Hello"; //boolean addAAR = true; String uniqueId = "starbucks.com"; byte[] uriField = uniqueId.getBytes(Charset.forName("US-ASCII")); byte[] payload = new byte[uriField.length + 1]; //add 1 for the URI Prefix payload[0] = 0x01; //prefixes