I have a file named as "policy" in R.raw folder. I want to show this file inside a webview so that user can view this file inside it.
Asked
Active
Viewed 163 times
0
-
I finally got the inputstream of that raw file and used a pdf viewer library: https://github.com/barteksc/AndroidPdfViewer and it is working good. – Talha Akbar Mar 12 '21 at 07:12
-
1Well done. So you know by now that a WebView cannot display a pdf document to begin with. – blackapps Mar 12 '21 at 10:03