9. 狈贵颁って何?
非接触ICカードの規格
NFCIP-2
( ISO/IEC 21481 )
ISO/IEC 15693 = ISO/IEC
NFCIP-1 ISO/IEC 14443
18000-3 Model 1
( ISO/IEC 18092 ) Type B
RFID
ISO/IEC 18092 ISO/IEC 18092
Type F ( FeliCa ) Type A ( MIFARE )
12年3月17日土曜日
32. NFCDemo
Tag読み取り処理
The Tag Dispatch System
Android-powered devices are usually looking for NFC tags when the screen is unlocked, unless NFC is
disabled in the device's Settings menu. When an Android-powered device discovers an NFC tag, the
desired behavior is to have the most appropriate activity handle the intent without asking the user what
application to use. Because devices scan NFC tags at a very short range, it is likely that making users
manually select an activity would force them to move the device away from the tag and break the
connection. You should develop your activity to only handle the NFC tags that your activity cares about
to prevent the Activity Chooser from appearing.
To help you with this goal, Android provides a special tag dispatch system that analyzes scanned NFC
tags, parses them, and tries to locate applications that are interested in the scanned data. It does this
by:
1. Parsing the NFC tag and figuring out the MIME type or a URI that identifies the data payload in
the tag.
2. Encapsulating the MIME type or URI and the payload into an intent. These first two steps are
described in How NFC tags are mapped to MIME types and URIs.
3. Starts an activity based on the intent. This is described in How NFC Tags are Dispatched to
Applications.
Android Developersより
12年3月17日土曜日