title: Android WebView display a blank page after I login
body: <p>I'm trying to load a web application in <code>WebView</code> but I've encounter some problem.   </p>
  
  <p>The web application that I was trying to load was a login page and I am going to login to it.  </p>
  
  <p>Here is where the problem start, I have no problem loading the 1st page but after I login and it should be showing the page after I login but all I can see was a blank page, I've checked on the login log that my account was logged in but there was nothing on the <code>WebView</code>.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      WebView webView = (WebView) findViewById(R.id.webView);
      WebSettings webSettings = webView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webSettings.setDomStorageEnabled(true);
  
      webView.setWebViewClient(new WebViewClient());
      {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
  
              view.loadUrl(url);
              return false;
          }
      });
  
      webView.loadUrl(url);
  
  }
  </code></pre>
  
  <p>I have tried it using <code>WebChromeClient</code> and it was able to load without problem but I want it to load inside <code>WebView</code> and not open another browser.<br>
  Anyone have any idea on why this is happening?</p>