【问题标题】:well-known-type android nfc intent-filter众所周知的类型 android nfc 意图过滤器
【发布时间】:2012-09-16 19:37:33
【问题描述】:

我要过滤以下类型:

urn:nfc:wkt:Hs

在 android 清单中。

我写数据如下:

public NdefRecord createHandoverSelectRecord(byte[] payload) {
    NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN,
    NdefRecord.RTD_HANDOVER_SELECT, new byte[0], payload);
    return record;
}

我现在如何正确过滤类型?

谢谢。

【问题讨论】:

    标签: java android nfc intentfilter ndef


    【解决方案1】:

    很遗憾,您无法过滤这些消息。大概(希望?),因为 Android 会在某些时候扩展处理切换消息本身的功能? 请参阅 the documentation 了解您可以过滤哪些类型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多