I'm writing a program that is able to upload an applet automacaly once the card is inserted into the reader.
I've done this part and i"d like to be able to verify if the applet is already installed on the card before trying to install it again.
I'm using the javax.smartcardio package
this what what i think i'm supposed to use in order to send the command :
Card card = terminal.connect("T=0");
CardChannel channel = card.getBasicChannel();
ResponseAPDU resp = channel
.transmit(new CommandAPDU());
but i don't know how to send the command using may applet's AID.
My applet's AID is 01020304050607080900