Search code examples
androidpdfandroid-activity

Display PDF file inside my android application


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 the Android default app. But I want to view PDF file directly inside my application without exiting. I have an header and a footer in my layout - I'd like to open the PDF in between. I have also found a PdfReader.jar file from github.com, but it opens the PDF in a new activity.


Solution

  • Maybe you can integrate MuPdf in your application. Here is I've described how to do this: Integrate MuPDF Reader in an app