Is there any way I can check whether the device can read and write Mifare classic NFC tags? I am writing an app which main use case is to read and write Mifare classic tags, so if it can not, the app should show a message and close.
public boolean deviceSupportsMifareClassic() {
FeatureInfo[] info = mContext. getPackageManager().getSystemAvailableFeatures();
for (FeatureInfo i : info) {
String name = i.name;
if (name != null && name.equals("com.nxp.mifare")) {
return true;
}
}
return false;
}