简体   繁体   English

知名的android nfc intent-filter

[英]well-known-type android nfc intent-filter

I want to filter the following Type: 我想过滤以下类型:

urn:nfc:wkt:Hs urn:nfc:wkt:Hs

in the android manifest. 在Android清单中。

I write the data as follows: 我将数据编写如下:

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

How can I filter now correctly the Type? 现在如何正确过滤类型?

Thanks. 谢谢。

Unfortunately, you cannot filter for these messages. 不幸的是,您无法筛选这些消息。 Presumably (hopefully?), because Android will at some point be extended with the functionality to handle Handover messages itself? 大概是(希望如此),因为Android会在某个时候扩展为具有处理切换消息本身的功能吗? See the documentation for what types you can filter for. 请参阅文档以了解可以过滤的类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM