简体   繁体   中英

well-known-type android nfc intent-filter

I want to filter the following Type:

urn:nfc:wkt:Hs

in the android manifest.

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? See the documentation for what types you can filter for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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