urbanairship-core/src/main/java/com/urbanairship/actions/LandingPageActivity.java
@SuppressLint("NewApi")
    protected void loadLandingPage(long delay) {
        if (webView == null) {
            return;
        }

        webView.stopLoading();

        if (delay > 0) {
            handler.postAtTime(new Runnable() {
                @Override
                public void run() {
                    loadLandingPage(0);
                }
            }, uri, SystemClock.uptimeMillis() + delay);
            return;
        }

        Logger.info("Loading landing page: " + uri);

        // Set the background color
        if (webViewBackgroundColor != -1) {
            webView.setBackgroundColor(webViewBackgroundColor);
        }

        error = null;

        if (RichPushInbox.MESSAGE_DATA_SCHEME.equalsIgnoreCase(uri.getScheme())) {
            final String messageId = uri.getSchemeSpecificPart();
            RichPushMessage message = UAirship.shared()
                                              .getInbox()
                                              .getMessage(messageId);
            if (message != null) {
                webView.loadRichPushMessage(message);
                message.markRead();
            } else {
                fetchMessagesCallback = UAirship.shared().getInbox().fetchMessages(new RichPushInbox.FetchMessagesCallback() {
                    @Override
                    public void onFinished(boolean success) {
                        if (success && UAirship.shared().getInbox().getMessage(messageId) == null) {
                            Logger.error("Message " + messageId + " not found.");
                            finish();
                        }

                        loadLandingPage();
                    }
                });


            }
        } else {
            if (UAirship.shared().getWhitelist().isWhitelisted(uri.toString(), Whitelist.SCOPE_OPEN_URL)) {
                webView.loadUrl(uri.toString());
            } else {
                Logger.error("URL is not whitelisted. Unable to load landing page: " + uri);
                finish();
            }
        }
    }
/**
     * Load the landing page uri with a delay
     *
     * @param delay Delay before loading the landing page.  Delay of 0 or less
     * will start loading the landing page immediately.
     */
Load the landing page uri with a delay
@param delay Delay before loading the landing page.  Delay of 0 or less
will start loading the landing page immediately.
Load the landing page uri with a delay @param delay Delay before loading the landing page . Delay of 0 or less will start loading the landing page immediately .
@SuppressLint("NewApi")
    protected void loadLandingPage(long delay) {
        if (webView == null) {
            return;
        }
        webView.stopLoading();
        if (delay > 0) {
            handler.postAtTime(new Runnable() {
                @Override
                public void run() {
                    loadLandingPage(0);
                }
            }, uri, SystemClock.uptimeMillis() + delay);
            return;
        }
        Logger.info("Loading landing page: " + uri);
        if (webViewBackgroundColor != -1) {
            webView.setBackgroundColor(webViewBackgroundColor);
        }
        error = null;
        if (RichPushInbox.MESSAGE_DATA_SCHEME.equalsIgnoreCase(uri.getScheme())) {
            final String messageId = uri.getSchemeSpecificPart();
            RichPushMessage message = UAirship.shared()
                                              .getInbox()
                                              .getMessage(messageId);
            if (message != null) {
                webView.loadRichPushMessage(message);
                message.markRead();
            } else {
                fetchMessagesCallback = UAirship.shared().getInbox().fetchMessages(new RichPushInbox.FetchMessagesCallback() {
                    @Override
                    public void onFinished(boolean success) {
                        if (success && UAirship.shared().getInbox().getMessage(messageId) == null) {
                            Logger.error("Message " + messageId + " not found.");
                            finish();
                        }
                        loadLandingPage();
                    }
                });
            }
        } else {
            if (UAirship.shared().getWhitelist().isWhitelisted(uri.toString(), Whitelist.SCOPE_OPEN_URL)) {
                webView.loadUrl(uri.toString());
            } else {
                Logger.error("URL is not whitelisted. Unable to load landing page: " + uri);
                finish();
            }
        }
    }
@ SuppressLint ( "NewApi" ) protected void loadLandingPage ( long delay ) { if ( webView == null ) { return ; } webView . stopLoading ( ) ; if ( delay > 0 ) { handler . postAtTime ( new Runnable ( ) { @ Override public void run ( ) { loadLandingPage ( 0 ) ; } } , uri , SystemClock . uptimeMillis ( ) + delay ) ; return ; } Logger . info ( "Loading landing page: " + uri ) ; if ( webViewBackgroundColor != - 1 ) { webView . setBackgroundColor ( webViewBackgroundColor ) ; } error = null ; if ( RichPushInbox . MESSAGE_DATA_SCHEME . equalsIgnoreCase ( uri . getScheme ( ) ) ) { final String messageId = uri . getSchemeSpecificPart ( ) ; RichPushMessage message = UAirship . shared ( ) . getInbox ( ) . getMessage ( messageId ) ; if ( message != null ) { webView . loadRichPushMessage ( message ) ; message . markRead ( ) ; } else { fetchMessagesCallback = UAirship . shared ( ) . getInbox ( ) . fetchMessages ( new RichPushInbox . FetchMessagesCallback ( ) { @ Override public void onFinished ( boolean success ) { if ( success && UAirship . shared ( ) . getInbox ( ) . getMessage ( messageId ) == null ) { Logger . error ( "Message " + messageId + " not found." ) ; finish ( ) ; } loadLandingPage ( ) ; } } ) ; } } else { if ( UAirship . shared ( ) . getWhitelist ( ) . isWhitelisted ( uri . toString ( ) , Whitelist . SCOPE_OPEN_URL ) ) { webView . loadUrl ( uri . toString ( ) ) ; } else { Logger . error ( "URL is not whitelisted. Unable to load landing page: " + uri ) ; finish ( ) ; } } }
Load the landing page uri with a delay
 @param delay Delay before loading the landing page.
Load the landing page uri with a delay @param delay Delay before loading the landing page .
// Set the background color