Back to project page android-nfc-reader.
The source code is released under:
MIT License
If you think the Android project android-nfc-reader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.mklbravo.lib.nfcreader.contracts; //from w ww .j a va2s . c om import android.nfc.Tag; public class TagTech { private static final String MIFARE_CLASSIC = "android.nfc.tech.MifareClassic"; public static boolean isMifareTag(Tag androidTag) { boolean isMifare = false; String[] techList = androidTag.getTechList(); for(String tech : techList) { if(tech.equalsIgnoreCase(MIFARE_CLASSIC)) isMifare = true; } return isMifare; } public static boolean notMifareTag(Tag androidTag){ return !isMifareTag(androidTag); } }