ST25 NFC Tap app issue on Android Version 14
We are testing the app on a newer mobile and encountered this issue:
Calling this function will cause the application to crash:
mFtmCommands = new FtmCommands(mST25DVTag);
The problem is in this procedure:
private void setMaxTransmissionSize() {
if (this.mST25DVTag != null) {
this.mMaxTransceiveSize = this.mST25DVTag.getReaderInterface().getMaxTransmitLengthInBytes();
if (this.mUseAddressedMode) {
this.mMaxTransmissionSize = Math.min(this.mMaxTransceiveSize - 12, 256);
} else {
this.mMaxTransmissionSize = Math.min(this.mMaxTransceiveSize - 4, 256);
}
}
}
specifically this line:
this.mMaxTransceiveSize = this.mST25DVTag.getReaderInterface().getMaxTransmitLengthInBytes();
If the mobile phone is close to the NFC antenna, the problem does not occur, if the phone is out of range, the application crashes.
(There is not problem on the older Android Version 9...)
