Back to project page Android_NFC_FelicaEdit.
The source code is released under:
Apache License
If you think the Android project Android_NFC_FelicaEdit 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 jp.co.yumemi.nfc; /* w w w . ja va 2 s . c om*/ import android.nfc.Tag; import android.nfc.tech.TagTechnology; public class NFCUtil { static public boolean hasTech(Tag tag, String klassName) { for (String tech : tag.getTechList()) { if (tech.equals(klassName)) { return true; } } return false; } static public boolean hasTech(Tag tag, Class<? extends TagTechnology> tech) { return hasTech(tag, tech.getCanonicalName()); } }