Code example for WebView

Methods: saveState

0
        super.onResume(); 
    } 
 
    @Override 
    protected void onSaveInstanceState(Bundle state) {
        webView.saveState(state);
    } 
 
    @Override 
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            if (webView.canGoBack()) {
                webView.goBack();
                return true; 
            } 
        } 
        return super.onKeyDown(keyCode, event);
    } 
 
    private final class HelpClient extends WebViewClient {
        @Override