Code example for NdefRecord

0
        Preconditions.checkNotNull(type);
        Preconditions.checkNotNull(data);
 
        byte[] typeBytes = type.getBytes(Charset.forName("US-ASCII"));
 
        return new NdefRecord(NdefRecord.TNF_MIME_MEDIA, typeBytes, new byte[0], data);
    } 
} 
Experience pair programming with AI  Get Codota for Java