| | |
| | | private static final int CONFIGURATION_POWER_CARD = 9; |
| | | private static final int PASS_WORD_CRAD = 10; |
| | | |
| | | private static final int ERROR = -1; |
| | | |
| | | volatile UserCard userCard; |
| | | ActivityRedCardBinding redCardBinding; |
| | | |
| | |
| | | } |
| | | |
| | | } else { |
| | | message.what = ERROR; |
| | | message.what = MyCommon.ERROR; |
| | | } |
| | | handler.sendMessage(message); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void error() { |
| | | public void error(int code) { |
| | | Message message = new Message(); |
| | | message.what = ERROR; |
| | | message.what = code; |
| | | handler.sendMessage(message); |
| | | } |
| | | }); |
| | |
| | | redCardBinding.readCardTypeTV.setText("当前为密码卡"); |
| | | stopAnim(); |
| | | break; |
| | | case MyCommon.ERROR_MOVE: |
| | | stopAnim(); |
| | | ToastUtil.show("连接中断,请重新贴合卡片"); |
| | | break; |
| | | default: |
| | | ToastUtil.show(ReadCardAcitivy.this, "卡片无法识别"); |
| | | stopAnim(); |