I have a little problem with my applet.It works fine ,as it should, on some of my Java cards, but on some other cards it works sketchy! It is written in a way to sends back an array, but it sends back only the first byte of it. I tried different ways, but it sends only that first byte always. Is it a card error or something with my app? Here is an example function.This function works fine and sends the whole array in half of my cards only and not in all of them!
public void testA(APDU apdu)
{
Util.arrayCopyNonAtomic(keyParameters.getA(), (short) 0, apdu.getBuffer(), (short) 0, (short) keyParameters.getA().length);
apdu.setOutgoingAndSend((short) 0, (short)keyParameters.getA().length);
}
PS. I'm using 2 types of Gemalto cards, one of them probably has NFC.