2012-07-31 271 views

回答

0

This SO帖子包含一些代碼的

String type = ndefTag.getType();   // tag type 

,它看起來像你需要

1

什麼片斷嘗試

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 
    } 
} 
相關問題