We are developing an android application where user can swipe his/her magnetic card.
We need to parse the information, however there will be two scenarios to capture and handle the card input (we have connected the USB magnetic card reader):
When focus is on Credit Card# textbox and user swipes his/her card we need to parse the information, need to show the card number only in the current focus field and Card Holder Name in another textbox/label.
If our application is running or even if it is not running and user swipes his/her card, we need to capture this information take the user to a particular activity in our application and need to pre-populate the captured information.
Please let us know how to do this in both scenarios.