Code example for DialogFragment

Methods: onSaveInstanceState

0
        web.restoreState(savedInstanceState);
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        if (web != null)
            web.saveState(outState);
    } 
 
    public class MyWebViewClient extends WebViewClient {
        @Override 
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            return false; 
        } 
 
        @Override 
        public void onReceivedError(WebView view, int errorCode, String description,
                String failingUrl) {
            super.onReceivedError(view, errorCode, description, failingUrl);
Connect your IDE to all the code out there  Get Codota for Java