When I used JCIDE to debug my applet, I found that no matter which protocol I selected, my applet never entered into the line
"if (protocol == apdu.PROTOCOL_MEDIA_CONTACTLESS_TYPE_A)" , I don't know why this happened. Could somebody help me solve this issue? Thanks!
Here is part of my code.
Code: Select all
byte protocol = apdu.getProtocol();
if (protocol == apdu.PROTOCOL_MEDIA_CONTACTLESS_TYPE_A)
{
;
}
else if (protocol == apdu.PROTOCOL_T1)
{
;
}
else if (protocol == apdu.PROTOCOL_T1)
{
;
}