Hallo,

first of all, the prefered method of receiving tag detection events is
the android.nfc.action.TECH_DISCOVERED intent, the intent
android.nfc.action.TAG_DISCOVERED is only used for fall-back tag
detection.

All three NFC intents (NDEF_DISCOVERED, TECH_DISCOVERED,
TAG_DISCOVERED) have three extras:

"android.nfc.extra.ID": This is the UID (or whatever it's equivalent
is called for that technology).

"android.nfc.extra.NDEF_MESSAGES": If the tag is an NDEF tag (or a
dummy tag for NPP) this extra contains the received NDEF messages.

"android.nfc.extra.TAG": This is the Tag object for the detected tag.
You can use it to get the tags technology and to create technology
specific connections.

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to