java在Android中发现标签时如何识别mifare classic和mifare ultralight 1 周,4 日 Questions & Answers 786 我正在安卓系统中研究nfc,我想知道发现的标签是Mifare Classic还是Mifare Ultralight或其他任何标签。请告诉我怎么做
# 2 楼答案 试试看 String[] techs = tag.getTechList(); for (String t : techs) { if ("com.android.nfc.tech.MifareClassic".equals(t)) { ... // it's MIFARE Classic } else if ("com.android.nfc.tech.MifareUltralight".equals(t)) { ... // it's MIFARE Ultralight } }
# 1 楼答案
This所以post包含一些代码,其中包含
看起来正是你需要的
# 2 楼答案
试试看