3 ms·
Oh, that is crappy. I had assumed it was both read and write, but it is in fact read only in 2.3 according to the API docs: Provides access to Near Field Commu
by trotsky 16y ago
Oh, that is crappy. I had assumed it was both read and write, but it is in fact read only in 2.3 according to the API docs:
Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags. A "tag" may actually be another device that appears as a tag.
Here's a summary of the classes:
NfcAdapter -
This represents the device's NFC adapter, which is your entry-point to performing NFC operations. You can acquire an instance with getDefaultAdapter().
NdefMessage -
Represents an NDEF data message, which is the standard format in which "records" carrying data are transmitted between devices and tags. Your application can receive these messages from an ACTION_TAG_DISCOVERED intent.
NdefRecord -
Represents a record, which is delivered in a NdefMessage and describes the type of data being shared and carries the data itself.
http://developer.android.com/reference/android/nfc/package-descr.html http://developer.android.com/reference/android/nfc/package-d...