I have an android application that could display a PDF file in a web view. A PDF file is hosted on the network, and one of my requirements was not to download the PDF files locally.
Until a few days ago I was able to fulfill all the requirements using the URL
https://docs.google.com/gview/viewer?embed=true&url=<pdf_url>
Now Google has changed this URL. The new URL is as follows:
https://drive.google.com/viewerng/viewer?embedded=true&url=<pdf_url>
With the new viewer, Android no longer displays PDFs. Instead, every time I try to load a PDF file in the viewer, both the emulator and the devices show the following image:

How can I solve this problem?
Thanks,
Rik
source share