How can I open a pdf file from my android device(from download folder) on a webview? I tried to open pdf on webview but it supports only web url.Is it possible to open local pdf file on webview. I tried barteksc library, but it is a very large file. Any solutions?
I would suggest you use the native feature PdfRenderer
instead of webview
.
From android OS 5.0(lollipop) on-wards you can use this class to show pdf's within the app. If you want to support OS lower than that you can use a library as there is no native support
Read more about the class from the docs here, you can also refer this example provided by google