简体   繁体   中英

Identifying tagTech and reading a Tag using android nfc

My problem is i have to read a tag not sure what would be the tech technology for example it could be MiFare Classic , NfcV , MifareUltralight etc. So I have to first detect the type of card and then read its UID based on its technology. I can get the tag and also the tech list but then how do I determine where is UID would be in little endian or big endian From the tag object I can create the TagTechnology object but how would i know which TagTechnology class i have to use. I mean do I have to use
IsoDep MifareClassic So, I am missing a very basic thing but can't figure out what

To give an example , NFC Taginfo app does this and read any type of card. Want to implement something similar but on a smaller scale limited to UID of the card only

Any help is appreciated

Thanks Nirav

诀窍很简单:例如,如果标记上没有该技术,则MifareClassic.get(tagObject)将返回null

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