void readCard() { MposUi ui = MposUi.initialize(/* ... */); AccessoryParameters accessoryParameters = new AccessoryParameters.Builder(AccessoryFamily.MIURA_MPI) .bluetooth() .build(); ui.getConfiguration().setTerminalParameters(accessoryParameters); Intent intent = MposUi.getInitializedInstance().createReadCardIntent(); startActivityForResult(intent, MposUi.REQUEST_CODE_READ_CARD); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == MposUi.REQUEST_CODE_READ_CARD) { if (resultCode == MposUi.RESULT_CODE_READ_CARD_SUCCESS) { CardDetails details = MposUi.getInitializedInstance().getCardDetails(); StringBuilder cardDetails = new StringBuilder(); if(details.getMaskedCardNumber() != null) { cardDetails.append("MaskedCardNumber: " + details.getMaskedCardNumber() + "\n"); } if(details.getCardNumber() != null) { cardDetails.append("CardNumber: " + details.getCardNumber() + "\n"); } if(details.getTrack1() != null) { cardDetails.append("Track1: " + details.getTrack1() + "\n"); } if(details.getTrack2() != null) { cardDetails.append("Track2: " + details.getTrack2() + "\n"); } if(details.getTrack3() != null) { cardDetails.append("Track3: " + details.getTrack3() + "\n"); } Toast.makeText(this, cardDetails.toString(), Toast.LENGTH_LONG).show(); } } }