简体   繁体   中英

Write Hex NDEF Message, into NFC tag

Can we write the whole NDEF message, into an NFC Tag, using Hex presentation? http://www.developer.nokia.com/Community/Wiki/Understanding_NFC_Data_Exchange_Format_(NDEF)_messages

I have not tried this myself but: Should it not be possible to create the hex message, use toBytes / toByteArray or what not then use the

 NdefMessage(byte[] data)

Construct an NDEF Message by parsing raw bytes. Considering that hex is just a representation of bytes this should work out for you.

More info http://developer.android.com/reference/android/nfc/NdefMessage.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM