Android NFC framework introduction and develop guide
发布时间:2021-06-07
发布时间:2021-06-07
Android system NFC framework introduction and develop guide
Android NFC Basics 1.
2.
3. 4.
5.
6. 7. 8. 9.
10.
11.
12.
13.
14.
15.
16.
17. The Tag Dispatch System How NFC tags are mapped to MIME types and URIs How NFC Tags are Dispatched to Applications Requesting NFC Access in the Android Manifest Filtering for Intents ACTION_NDEF_DISCOVERED ACTION_TECH_DISCOVERED ACTION_TAG_DISCOVERED Obtaining information from intents Creating Common Types of NDEF Records TNF_ABSOLUTE_URI TNF_MIME_MEDIA TNF_WELL_KNOWN with RTD_TEXT TNF_WELL_KNOWN with RTD_URI TNF_EXTERNAL_TYPE Android Application Records Beaming NDEF Messages to Other Devices
This document describes the basic NFC tasks you perform in Android. It explains how to send and receive NFC data in the form of NDEF messages and describes the Android framework APIs that support these features. For more advanced topics, including a discussion of working with There are two major uses cases when working with NDEF data and Android:
Reading NDEF data from an NFC tag Beaming NDEF messages from one device to another with discovered NFC tags, appropriately categorizes the data, and starts an application that is
interested in the categorized data. An application that wants to handle the scanned NFC tag can The Android Beam feature allows a device to push an NDEF message onto another device by physically tapping the devices together. This interaction provides an easier way to send data than other wireless technologies like Bluetooth, because with NFC, no manual device discovery or pairing is required. The connection is automatically started when two devices come into range. Android Beam is available through a set of NFC APIs, so any application can transmit information between devices. For example, the Contacts, Browser, and YouTube applications use Android Beam to share contacts, web pages, and videos with other devices.
下一篇:上半年工作总结