I know this question seems simple and already asked but I search and it isn't. I want to open pdf in my webview so I search I found 2 main solutions :
1) Google docs : But it does not read from SDCard
2) Pdf.js that seems better and works on pdf in SDCard
To use it want to do something like that :
<iframe src="file:///android_asset/pdfjs/web/viewer.html?file=" + file.getAbsolutePath() + file + "&embedded=true'
width='100%' height='100%'
style='border: none;'></iframe>"
But I can't test it ! I relatively new to android and I don't understand how to implement pdf.js in my app on android studio...
Can someone tell me step by step how to install .js file in android studio ?
EDIT
Sorry I misunderstood things, I thought pdf.js was some kind of lib that must be installed.
But I still have my problem, how can I display a pdf in a div with pdf.js ?