我知道如何获得Nfc唯一的ID,当NFC阅读器,
private Tag tag;
//Read success.
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
byte[] id = tag.getId();}
但我想即使我不读NFC卡。
如何获得NFC id,而无需在android上读取nfc?
谢谢。
发布于 2018-11-26 12:29:40
手机作为一个标签(卡片模拟)确实有一个随机的UID (4字节)。不支持调整特定的UID。
因此,每次外部字段被关闭和再次打开,移动电话作为一个不同的UID。
诚挚的问候,
https://stackoverflow.com/questions/53473341
复制相似问题