Code example for WebView

Methods: canGoBackgoBack

0
    } 
 
    @Override 
    public void onBackPressed() { 
 
        if (mWebView != null && mWebView.canGoBack())
            mWebView.goBack();
        else 
            super.onBackPressed(); 
    } 
 
    /** 
     * Get the URL of the WordPress login page. 
     * 
     * @return URL of the login page. 
     */ 
    protected String getLoginUrl() {
        if (mBlog.getUrl().lastIndexOf("/") != -1) {
            return mBlog.getUrl().substring(0, mBlog.getUrl().lastIndexOf("/"))
                    + "/wp-login.php"; 
        } else {