在我的Andr​​oid应用程序中显示PDF文件 [英] Display PDF file inside my android application

查看:102
本文介绍了在我的Andr​​oid应用程序中显示PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法弄清楚如何显示一个Android应用程序中的PDF文件。到目前为止,我发现,有可能推出一个意图并使用了Android默认的应用程序打开PDF。但我想直接查看PDF文件,我的应用程序中,但不退出。我有一个头,在我的布局页脚 - 我想在两者之间打开PDF。我还发现了一个 PdfReader.jar 从github.com文件,但它打开PDF在新的活动。

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.

推荐答案

也许你可以在你的应用程序中集成MuPdf。下面是我描述如何做到这一点:<一href="http://stackoverflow.com/questions/8500530/mupdf-reader-integrate-in-project/8587527#8587527">MuPdf项目读卡器集成

Maybe you can integrate MuPdf in your application. Here is I've described how to do this: MuPdf Reader integrate in project

这篇关于在我的Andr​​oid应用程序中显示PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆