任何Android设备上打开PDF文件 [英] Open pdf file on any android device

查看:149
本文介绍了任何Android设备上打开PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个下载 PDF 文件从互联网上的应用程序,并打开它们。我认为,如果我有一个应用程序能够打开的 PDF S,它工作正常(我送的意图,操作系统与 Intent.ACTION_VIEW )。在模拟器上,例如,我没有安装这样的应用程序。 但是我要表明 PDF 不知何故,任何设备上的用户。我需要pferably在任何Android设备,$ P $工作没有任何外部应用的通用解决方案。可能吗?

I am developing an app that downloads PDF files from the internet and opens them. I observed that if I have an app that is capable of opening PDFs, it works fine (I send an intent to the OS with Intent.ACTION_VIEW). On the emulator for example, I have no such app installed. But I want to show the user that PDF somehow, on any device. I need a general solution that works on any Android device, preferably without any external apps. Is it possible?

推荐答案

是的,你可以创建一个简单的应用程序PDFViewr和您可以下载的PDF加载到该应用程序。我同样回答这个问题

Yes, you can create one simple PDFViewr application and you can load your downloaded pdf into that app. I've similarly answered to this question

看一看这里也。不要忘了导入这个PDF应用程序所需的库。

Have a look at here also. Don't forget to import the required library for this PDF application.

希望这有助于你。

这篇关于任何Android设备上打开PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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