Code example for WebView

Methods: canGoBackgoBack

0
    } 
 
    @Override 
    public void onBackPressed() { 
 
        if (webView.canGoBack())
            webView.goBack();
        else 
            super.onBackPressed(); 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE