【问题标题】:what ACTION use to detect a reader nfc the same as SCL011?什么操作用于检测与 SCL011 相同的阅读器 nfc?
【发布时间】:2013-08-01 14:18:25
【问题描述】:

我尝试使用三个操作来发现 NFC READER SCL011 。 系统无法验证此条件:

if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)).

我使用这个技术列表:

    <tech>android.nfc.tech.IsoDep</tech>
    <tech>android.nfc.tech.NfcA</tech>
    <tech>android.nfc.tech.NfcB</tech>
    <tech>android.nfc.tech.NfcF</tech>
    <tech>android.nfc.tech.NfcV</tech>
    <tech>android.nfc.tech.Ndef</tech>
    <tech>android.nfc.tech.NdefFormatable</tech>
    <tech>android.nfc.tech.MifareClassic</tech>
    <tech>android.nfc.tech.MifareUltralight</tech>

我不知道我可以为这个阅读器使用什么技术。 没有 ACTION_NDEF_DISCOVERED , ACTION_TECH_DISCOVERED, ACTION_TAG_DISCOVERED 有没有别的动作??

【问题讨论】:

    标签: android-intent nfc intentfilter


    【解决方案1】:

    Android 中的 NFC 技术类是指(被动)标签,而不是(主动)阅读器。您无法与 Android 中的阅读器进行通信。唯一的例外是阅读器还可以进行 NFC 点对点通信 (ISO 18092),在这种情况下,您需要 SNEP 协议来向/从 Android 发送或接收 NDEF 消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-27
      • 1970-01-01
      相关资源
      最近更新 更多