I cannot figure out how to show a PDF file inside an Android application. So far I\'ve found out that it is possible to launch an Intent
and open the PDF using
you can use webview to show the pdf inside an application , for that you have to :
Many pdf to html online converter available.
Example:
consent_web = (WebView) findViewById(R.id.consentweb);
consent_web.getSettings().setLoadWithOverviewMode(true);
consent_web.getSettings().setUseWideViewPort(true);
consent_web.loadUrl("file:///android_asset/spacs_html.html");
Highly recommend you check out PDF.js which is able to render PDF documents in a standard a WebView component.
Also see https://github.com/loosemoose/androidpdf for a sample implementation of this.