Android中NFC知识介绍 近场通信(NFC)是一种短距离无线技术,通常要求距离为4cm或更低以启动连接。NFC允许你在NFC标签和android 驱动 的设备之间,或者在两个android驱动的设备之间共享少量的数据。 简单的标签只提供读和写的功能,有时使用一个可编程的区域使卡片只读。更复杂的标签提供数学运算,并有加 密硬件来认证对一个扇区的访问。最复杂的标签包含操作环境,允许通过代码 与在标签 进行复杂的交互。存储在标签 中的数据也可以用多种格式编写,但是Android框架api大多都是基于NDEF 标准 (NFC数据交换格式)。 根据Google官方文档的介绍, 具有NFC的安卓设备同时支持三种主要的操作方式: Reader/writer mode , allowing the NFC device to read and/or write passive NFC tags and stickers. P2P mode , allowing the NFC device to exchange data with other NFC peers; this operation mode is used by Android Beam. Card emulation mode , allowing the NFC device itself to act as an NFC