| | |
| | | private static NativeNfcReadHelper helper; |
| | | |
| | | |
| | | public NativeNfcReadHelper(Intent intent, Activity activity) { |
| | | } |
| | | |
| | | |
| | | @Override |
| | |
| | | */ |
| | | public static NativeNfcReadHelper getInstence(Intent intent, Activity activity) { |
| | | if (helper == null) { |
| | | helper = new NativeNfcReadHelper(intent, activity); |
| | | helper = new NativeNfcReadHelper(); |
| | | } |
| | | helper.setIntent(intent); |
| | | return helper; |
| | |
| | | |
| | | @Override |
| | | public String getCardNumber() { |
| | | if (tag == null) { |
| | | return ""; |
| | | } |
| | | MifareClassic mfc = MifareClassic.get(tag); |
| | | if (null != mfc) { |
| | | try { |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public String getCardNumberNoClose() { |
| | | if (tag == null) { |
| | | return ""; |
| | | } |
| | | MifareClassic mfc = MifareClassic.get(tag); |
| | | if (null != mfc) { |
| | | try { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public boolean changePasword(int a, MifareClassic mfc) { |
| | | |
| | | } |
| | | } |