如何读取Android的PDF文件文件、Android、PDF

2023-09-12 00:16:37 作者:考场上纸条飞舞的快乐时光

我想读android的PDF文件。 我放在资产文件夹我的PDF文件。

I want to read a PDF file in android. I placed my PDF files in the assets folder.

如何可以从那里阅读PDF文件?

How can i read the PDF file from there?

PDF阅读器链接

我已经检查了上面的链接,但它不为我工作。 它给了我一个错误说未找到的活动。

I have checked the above link but it does not work for me. It gives me an error saying that the Activity was not found.

和我也想打开的WebView PDF文件。那么,是否可以读取PDF中的WebView?

And I also want to open a PDF file in WebView. So is it possible to read PDF in WebView?

推荐答案

您需要有能够支持MIMETYPE并打开一个应用程序。 在你的设备/仿真器未安装该应用程序,因此抛出错误

You need to have a application which can support that mimetype and open it. In your device/emulator that app is not installed so it is throwing error