Code example for WebView

Methods: canGoBackgoBack

0
    } 
 
    @Override 
    public void onBackPressed() { 
 
        if (webView.canGoBack())
            webView.goBack();
        else 
            super.onBackPressed(); 
    } 
}