StyledString styledText =newStyledString();/* Add text…*/styledText.print(PrinterService.getService(getApplicationContext())); // Print, without service binding
EMV:
All ICC transactions must be completed in 330TR. The card read process is not completed until completeEmvTxn is called. Other than requested actions by API, ICC transactions can be completed as follows:
if (card.getmCardReadType() ==CardReadType.ICC.value) {byte action = (byte) 0x01; int emvResult = cardServiceBinding.completeEmvTxn(action, new byte[]{0, 0}, new byte[]{0, 0}, 0, new byte[]{0, 0}, 0);
}
Android Studio Configuration:
You need to edit your configurations in 330TR unlike 400/1000TR because its version is more than Android 11. Therefore you need to open Edit Configurations and then select "Always install with package manager". If you don't select that configuration, your latest changes won't work on your 330TR device.