Code example for WebView

Methods: clearHistory

0
            // Clear history of all previously visited pages. When the 
            // user visits a preloaded tab, the only item in the history 
            // list should the currently viewed page. 
            view.clearHistory();
        } 
    } 
 
    @Override 
    public void onPageFinished(Tab tab) {
        if (LOGD_ENABLED) Log.d(LOGTAG, "onPageFinished()");
        if (tab != null) {
            final WebView view = tab.getWebView();
            if (view != null) {
                // Clear history of all previously visited pages. When the 
                // user visits a preloaded tab. 
                view.clearHistory();
            } 
        } 
    } 
 
    @Override