Code example for WebView

Methods: clearHistory

0
                //This is the generated POST page. 
                if (url.startsWith("what:")) return;
                 
                //This is the first real page. 
                //Remove the generated page from history. 
                mWebView.clearHistory();
                mFirstPageLoaded = true;
                activity.setTitleButtonEnabled("refresh", true);
                return; 
            } 
        } 
         
 
        @Override 
        public void onFormResubmission(WebView view, Message dontResend,
                Message resend) {
            // TODO Auto-generated method stub 
            //super.onFormResubmission(view, dontResend, resend); 
            resend.sendToTarget();
        }