A comment to the definition of the NDEF record:

>   Stringurl= "http://example.com";;
>   byte[] payload =url.getBytes();
>   NdefRecord ndefRecord = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI,
> NdefRecord.RTD_URI, new byte[0], payload);

this works, however I am not sure whether it completely follows the
NDEF spec. RTD_URI is a well-known type ("U") for record type
definitions (RTDs), but in this case I would have expected WELL_KNOWN
as TNF, i.e.

        new NdefRecord(
                NdefRecord.TNF_WELL_KNOWN,
                NdefRecord.RTD_URI,
                new byte[0],
                "http://example.com".getBytes())

If TNF = TNF_ABSOLUTE_URI, i thought that this means that the type
descriptor is a complete URI (as we know it from XML schema, for
example). Can someone confirm this (and give an example on when to use
TNF_ABSOLUTE_URI)?

Thanks,
Dominik

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to