Code example for WebView

Methods: canGoBackgoBack

0
    } 
 
    @Override 
    public void onBackPressed() { 
 
        if (mWebView != null && mWebView.canGoBack())
            mWebView.goBack();
        else 
            super.onBackPressed(); 
 
    } 
 
    protected class UshahidiWebClient extends WebViewClient {
 
        @Override 
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true; 
        } 
 
    }