Package nfc.sample.nfctransaction.nfc

Examples of nfc.sample.nfctransaction.nfc.CardEmulation


        settings.setISO14443A(cbx_iso1443a.getChecked());
        settings.setISO14443B(cbx_iso1443b.getChecked());
        settings.setISO14443B_PRIME(cbx_iso1443b_prime.getChecked());
        if (!settings.getRegisteredAIDAsString().equals(edt_aid.getText())) {
            settings.setRegisteredAID(edt_aid.getText());
            CardEmulation ce = CardEmulation.getInstance();
            ce.removeTransactionListener();
            CardEmulation.registerTransactionListener(NfcTransHandlerApp.getTransactionListener());
        }
       
        settings.setAPDU(edt_apdu.getText());

        Utilities.log("XXXX " + Thread.currentThread().getName() + " Selected tech types="
                + Utilities.getTechnologyTypesNames(tech_types));

        if(current_tt != tech_types) {
            try {
                ce.setRoutingOn(tech_types);
            } catch(NFCException e) {
                Utilities.popupAlert("Error: could not change CE technology types");
                return;
            } catch(Exception e) {
                Utilities.log("XXXX " + Thread.currentThread().getName() + " " + e.getClass().getName() + ":" + e.getMessage());
View Full Code Here

TOP

Related Classes of nfc.sample.nfctransaction.nfc.CardEmulation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.