Tim Moores wrote:
WebView likely won't help, although you can try https://inducesmile.com/android-programming/how-to-display-a-pdf-in-webview-in-android/
Regarding this, I have already tried opening using google docs in webview. In this Pdf was opening fine but it was hampering the experience like :
1. Pdf used to load late and slow.
2. And sometimes pdf does not even loads. i.e on pdf loading finishes then a white screen comes.
And Regarding the pdf Renderer class is supported for API level 21+. But my app minimum sdk is 19. So I can't use it.
Adding to the above solution I have also tried adding a third-party library for rendering it was increasing app size up to 16mb.Just for sake of rendering a pdf increasing app size or adding a complete library I don't find it efficient enough.
It would be great if we could solve the root cause which I have mentioned in my last comment/another thread. Just as a quick hack I was trying to shift to webview. I have tried adding each and every details of my issue. Please check it. I am already stuck with this issue for a month now.