Android NFC framework introduction and develop guide(10)
发布时间:2021-06-07
发布时间:2021-06-07
Android system NFC framework introduction and develop guide
In your AndroidManifest.xml file, specify the resource file that you just created in the <meta-data> element inside the <activity> element like in the following example:
For more information about working with tag technologies and the ACTION_TECH_DISCOVERED ACTION_TAG_DISCOVERED
To filter for ACTION_TAG_DISCOVERED use the following intent filter:
Obtaining information from intents
If an activity starts because of an NFC intent, you can obtain information about the scanned NFC tag from the intent. Intents can contain the following extras depending on the tag that was scanned:
EXTRA_TAG (required): A Tag object representing the
scanned tag.
下一篇:上半年工作总结