public void Connect() throws CardNotPresentException, Exception { if (mFactory == null) { mFactory = mService.getTerminalFactory(); } List<CardTerminal> terminals = mFactory.terminals().list(); CardTerminal terminal_1 = terminals.get(0); Boolean b = terminal_1.isCardPresent(); android.util.Log.v("Test", b.toString()); this.mCard = terminal_1.connect("T=0"); this.ATR = mCard.getATR(); this.channel = mCard.getBasicChannel(); this.mIsConnected = true; }
public void release() { if (mService != null) { mService.releaseService(); } }