NFC/NfcReadNdefSmartTag/src/nfc/sample/Ndef/Read/NfcReadNdefSmartTagListener.java
/*
     * This is where we get passed an NDEFMessage
     * 
     * Schedule a runnable to handle it in the main event processing loop
     */
This is where we get passed an NDEFMessage

Schedule a runnable to handle it in the main event processing loop
This is where we get passed an NDEFMessage Schedule a runnable to handle it in the main event processing loop
public void onNDEFMessageDetected(NDEFMessage message) {
        Utilities.log("XXXX NfcReadNdefSmartTagListener detected an NDEF message");
        if (!_screen.isDisplayed()) {
            Utilities.log("XXXX NfcReadNdefSmartTagListener thinks event log screen is not displayed so pushing it");
            synchronized(UiApplication.getEventLock()) {
                UiApplication.getUiApplication().pushScreen(_screen);
            }
        } else {
            Utilities.log("XXXX NfcReadNdefSmartTagListener thinks event log screen is already displayed");
        }
        UiApplication.getUiApplication().invokeLater(new NfcReadNdefSmartTagUpdate(message, _screen));
    }
public void onNDEFMessageDetected ( NDEFMessage message ) { Utilities . log ( "XXXX NfcReadNdefSmartTagListener detected an NDEF message" ) ; if ( ! _screen . isDisplayed ( ) ) { Utilities . log ( "XXXX NfcReadNdefSmartTagListener thinks event log screen is not displayed so pushing it" ) ; synchronized ( UiApplication . getEventLock ( ) ) { UiApplication . getUiApplication ( ) . pushScreen ( _screen ) ; } } else { Utilities . log ( "XXXX NfcReadNdefSmartTagListener thinks event log screen is already displayed" ) ; } UiApplication . getUiApplication ( ) . invokeLater ( new NfcReadNdefSmartTagUpdate ( message , _screen ) ) ; }
This is where we get passed an NDEFMessage
This is where we get passed an NDEFMessage