title: How can I reconnect to IsoDep tag?
body: <p>I'm trying to send some apdu commands from android phone to the nfc tag and get answers. The type of used technology is IsoDep. Everything works fine, but sometimes, when the time between sending commands is too large, the tag switches to the disabled state and after that every reconnection fails.</p>
  
  <p>My code:</p>
  
  <pre><code>public byte[] transferCommand(byte[] command) throws Exception {
          byte[] result = null;
          if (iso == null)   {
              iso = IsoDep.get(tag);
              iso.connect();
          }
          if (!iso.isConnected()) {
              try {
                  iso.close();
                  iso.connect();
                  result = iso.transceive(command);
              } catch (Exception ex) {
                  iso.close();
              }
          }            
          return result;
      }
  </code></pre>
  
  <p>Could anybody help me please? Thank so much.</p>