title: Android Webview cannot render the pdf sometimes and shows blank/white page instead
body: <ul>
  <li>Open the pdf in the webview using google docs </li>
  <li>Open the same pdf or different pdf again and again.</li>
  <li>Sometimes it will show the blank/white page in the android untill we refresh the webpage again for 1 or 2 times.</li>
  </ul>
  
  <p>I have made the sample on the pdf. The link for the project is shown below:</p>
  
  <p><a href="https://github.com/gopalawasthi123/PdfWebView" rel="noreferrer">https://github.com/gopalawasthi123/PdfWebView</a></p>
  
  <p>Hope this will help you Better.</p>
  
  <pre><code>public void SetWebView(WebView webview,string externalUrl){
              webview.Tag = "webview";
              webview.Settings.JavaScriptEnabled = true;
              webview.Settings.SupportZoom ();
              webview.Settings.SetAppCacheEnabled(true);
              webview.Settings.DomStorageEnabled = true;
              webview.ZoomOut ();
              webview.ZoomIn ();
              webview.Settings.BuiltInZoomControls = true;
              webview.Settings.LoadWithOverviewMode = true;
              webview.Settings.UseWideViewPort = true;
              //webview.Settings.SetSupportZoom (true);
              webview.Settings.SetPluginState (WebSettings.PluginState.On);
              webview.Settings.GetPluginState ();
              if (externalUrl.StartsWith("http://") || externalUrl.StartsWith("https://"))
                  webview.LoadUrl (externalUrl);
              webview.SetWebViewClient (new MonkeyWebViewClient (imgViewBack, imgViewForward, imgRefresh));
              webview.SetWebChromeClient (new WebChromeClient ());
          }
  </code></pre>