NFC/NfcReadNdefSmartTag/src/nfc/sample/Ndef/Read/NdefListenerManager.java
/*
     * This unregisters with the NFC Reader Writer Manager We no longer want to be notified of Smart Tag events
     */
This unregisters with the NFC Reader Writer Manager We no longer want to be notified of Smart Tag events
This unregisters with the NFC Reader Writer Manager We no longer want to be notified of Smart Tag events
public void unRegisterListener() {
        ReaderWriterManager nfcManager;
        Utilities.log("XXXX NfcReadNdefSmartTag about to remove NDEF Message Listener");
        try {
            nfcManager = ReaderWriterManager.getInstance();
            /*
             * This is the converse of the call to register our interest in tags of a certain type. It should identify the same
             * TNF and record type as when it was registered.
             */
            nfcManager.removeNDEFMessageListener(NDEFRecord.TNF_WELL_KNOWN, "Sp");
            Utilities.log("XXXX NfcReadNdefSmartTag remove NDEF Message Listener success");
            rts.replace(Constants.LISTENER_STATE_TOKEN, new Boolean(false));
            ListenerControlScreen.getInstance().setLed();
        } catch(NFCException e) {
            e.printStackTrace();
            Utilities.log("XXXX NfcReadNdefSmartTag NFCException on unregister");
        }
    }
public void unRegisterListener ( ) { ReaderWriterManager nfcManager ; Utilities . log ( "XXXX NfcReadNdefSmartTag about to remove NDEF Message Listener" ) ; try { nfcManager = ReaderWriterManager . getInstance ( ) ; /*
             * This is the converse of the call to register our interest in tags of a certain type. It should identify the same
             * TNF and record type as when it was registered.
             */ nfcManager . removeNDEFMessageListener ( NDEFRecord . TNF_WELL_KNOWN , "Sp" ) ; Utilities . log ( "XXXX NfcReadNdefSmartTag remove NDEF Message Listener success" ) ; rts . replace ( Constants . LISTENER_STATE_TOKEN , new Boolean ( false ) ) ; ListenerControlScreen . getInstance ( ) . setLed ( ) ; } catch ( NFCException e ) { e . printStackTrace ( ) ; Utilities . log ( "XXXX NfcReadNdefSmartTag NFCException on unregister" ) ; } }
This unregisters with the NFC Reader Writer Manager We no longer want to be notified of Smart Tag events
This unregisters with the NFC Reader Writer Manager We no longer want to be notified of Smart Tag events