Display the pdf file(stored in google drive) in webview by using google docs
<p>My pdf file is stored in some website ex: <a href="http://www.pdf995.com/samples/pdf.pdf" rel="noreferrer">http://www.pdf995.com/samples/pdf.pdf</a></p>

<p>Now I can't rely on other websites for my app. So </p>

<ol>
<li>I've downloaded the pdf doc</li>
<li>uploaded in google drive</li>
<li>Got my own link for pdf</li>
<li>Trying to open that in <code>webview</code> using google docs</li>
<li>FAILED</li>
</ol>

<p>Now the links are as follows</p>

<ul>
<li><p>pdf stored in other website link: "<a href="http://www.pdf995.com/samples/pdf.pdf" rel="noreferrer">http://www.pdf995.com/samples/pdf.pdf</a>"</p></li>
<li><p>Sharable link of pdf saved in google drive: "<a href="https://drive.google.com/open?id=0B8e4zX5Y1S0XV0U0UTZJOUVma00" rel="noreferrer">https://drive.google.com/open?id=0B8e4zX5Y1S0XV0U0UTZJOUVma00</a>"</p></li>
<li><p>If it's preceded with google docs : "<a href="https://docs.google.com/gview?embedded=true&amp;url=https://drive.google.com/file/d/0B8e4zX5Y1S0XV0U0UTZJOUVma00/view" rel="noreferrer">https://docs.google.com/gview?embedded=true&amp;url=https://drive.google.com/file/d/0B8e4zX5Y1S0XV0U0UTZJOUVma00/view</a>"</p></li>
</ul>

<p>Result,</p>

<ul>
<li><p>Other websites may change their url at anytime. Can't rely on it.</p></li>
<li><p>If I use the google drive link alone, then it is opening in web browser not within the app.</p></li>
<li><p>If preceded with google docs, it is not resulting in a pdf doc. I get something like this.</p></li>
</ul>

<p><a href="https://i.stack.imgur.com/V6OzA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/V6OzA.png" alt="enter image description here"></a></p>

<p>What should be done so that I can use my own pdf from google drive to open in webview</p>

<p>I've followed <a href="https://stackoverflow.com/a/19119507/2820534">CommonsWare</a>, <a href="https://stackoverflow.com/a/27908545/2820534">Stuart Siegler</a>, <a href="https://stackoverflow.com/a/9382440/2820534">Samir Mangroliya</a> But nothing works.
:(</p>