v19.6 is deprecated. v20.0 contains major changes that will lock the main thread while printing long content. Please test it with long print content before using it.
400TR:
printService = new PrintServiceBinding(); // Bind Service
printService.print(printText); // Print
330TR:
StyledString styledText = new StyledString();
/* Add text…*/
styledText.print(PrinterService.getService(getApplicationContext())); // Print, without service binding
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);
}
Note: 5F2A field mandatory to be added for x30 integration.
Note:The setEMVConfiguration should be called first and followed by the setEMVCLConfiguration.
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.