title: How to Open PPT/Presentation file in webview in android?
body: <p>I have a URL of a presentation and i want to show this in the webview in android. I have tried the below code but it is redirecting in google drive app. </p>
  
  <blockquote>
    <p>String url1 =
    "<a href="https://docs.google.com/presentation/d/1nL5yO1HX_" rel="nofollow noreferrer">https://docs.google.com/presentation/d/1nL5yO1HX_</a>";</p>
  </blockquote>
  
  <p>And my Webiew code is below:</p>
  
  <pre><code>WebView mywebview = findViewById(R.id.webview);
  
  WebSettings settings = mywebview.getSettings();
  settings.setJavaScriptCanOpenWindowsAutomatically(true);
  settings.setBuiltInZoomControls(true);
  settings.setAllowFileAccess(true);
  settings.setJavaScriptEnabled(true);
  
  mywebview.loadUrl(url1);
  </code></pre>