title: HOW TO PARSE ATR String in Android
body: <p>Good day all, i am tasked to develop an application in android that basically functions by reading data from the chip of a smart caard. That is "easy enough" i initially thought. My workplace purchased some android devices with integrated card readers, got the SDK and handed it over to me. On reading the SDK and further research i discovered that all the SDK does is get the card ATR...which i understand contains historical data which contains personal card information.</p>
  
  <p>The issue here is that a member number is to be encoded onto the cards...(the reason for their purchase) but if the ATR being returned looks like this (actual letters have been rejigged):</p>
  
  <pre><code>3D 6Z 00 00 80 34 80 62 B0 89 35 01 F1 83 00 90 00
  </code></pre>
  
  <p>How can i parse this to get required information.The employee number is to be encoded into the chip and i am meant to read the card and extract the data.
  I was thinking i will see a "name/value" pair with values that i can now extract and use at will. So pardon my inexperience. How can i parse smartcard ATR's ?..Thanks</p>