JAVA sample code: Application Selection is the first step after the Answer to Reset. It has the function to select the ADF for the transaction process.
There are two ways to get the right ADF. If the card supports the Payment System Environment (PSE), the terminal reads out the necessary information to select the ADF. If there is no PSE, the terminal will use a list of AIDs and get the right by trying.