A strange problem with my applet
Posted: Wed Mar 30, 2016 11:31 pm
I have completed an applet recently. But I am stuck on a problem.
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.
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)
{
;
}