I use this sample code for apdu connection. When i run this code, ı got BAD AID exception. Is there anybody who get this error message before?
APDUConnection acn = null;
try{
//Create an APDUConnection object
acn = (APDUConnection)
Connector.open(“apdu:0;target=A0.0.0.67.4.7.1F.3.2C.3”);
// Send a command APDU and receive response APDU
responseAPDU = acn.exchangeAPDU(commandAPDU);
...
} catch (IOException e) {
...
} finally {
...
if(acn != null) {
// Close connection
acn.close();
}
...
}
...