Code example for DialogFragment

Methods: onActivityCreated

0
            web.restoreState(savedInstanceState);
    } 
 
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        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; 
Connect your IDE to all the code out there  Get Codota for Java