Example #1
0
  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;
  }
Example #2
0
 public void release() {
   if (mService != null) {
     mService.releaseService();
   }
 }