Hallo Dominik,

> What do you mean by "all three NFC intents *have* three extras"? I
> ask, because the documentation at
> http://developer.android.com/reference/android/nfc/NfcAdapter.html
> states, that EXTRA_ID and EXTRA_NDEF_MESSAGES are optional (which is
> obvious for the latter) and only EXTRA_TAG is mandatory.

Correct. Those intent extras are listed as optional. Still the current
implementation (or at least the one in Android 2.3.4) adds all three
extras to every intent. Though, some of the extras, especially
EXTRA_NDEF_MESSAGES, might be null.

> Anyway, in which case is the ID field not available?

I don't think that there is any case where the ID field will be
empty/not available. For NFC/RFID tags there will always be an ID field.
Even for the NDEF push protocol a mock tag with an ID of
    new byte[] { 0x00 }
is used.

br,
Michael

-- 
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