title: How to capture magnetic swipe data using headphone jack on Android?
body: <p>If someone wants to write a android application that interacts with a physical device, specifically a reader using mobiles audio jack 
  (e.g. Like how Square Inc is doing ) how is this done?
  Is there a api's to interact with the reader and get the cards data?</p>
  
  <p>When a company creates a reader (physical device) does it provide relevant apis?</p>
  
  <p>Are the physical details abstracted from the application programmer?</p>
  
  <p>I have found the AudioRecord class which can record magnetic stripe data from audio jack 
  But I can't fiqure out how to capture the actual card swipe event and 
  to extract the meaningful data from RAW DATA
  Can any one help me with this</p>
  
  <p>Any input is highly welcome! </p>