• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps NFC NdefRecord type TNF_WELL_KNOWN RTD_TEXT

mich35

Lurker
Hello,
I remark that when the TNF_WELL_KNOWN with RTD_TEXT is used for NdefRecord, there is no langage field.
Java:
NdefRecord ndefRecord = new NdefRecord(NdefRecord.TNF_WELL_KNOWN,
        NdefRecord.RTD_TEXT, new byte[0], content);
Is it correct?

Best regards
Michel
 
Can you please rephrase the question. It's not clear what your problem is.
 
When I read back the nfc I found:
header (1 byte) + Type length (1byte) + payload length (1 byte) + type (1byte = 0x54 : T) + payload.
I expected:
header (1 byte) + Type length (1byte) + payload length (1 byte) + type (1byte = 0x54 : T) + langage length (1 byte) + langage (n bytes) + payload.
 
Back
Top Bottom