Code example for WebView

Methods: reload

0
    public void onHomeClick(View v) {
        UIUtils.goHome(this);
    } 
 
    public void onRefreshClick(View v) {
        mWebView.reload();
    } 
 
    public void onSearchClick(View v) {
        UIUtils.goSearch(this);
    } 
 
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK && mWebView.canGoBack()) {
            mWebView.goBack();
            return true; 
        } 
        return super.onKeyDown(keyCode, event);
    }