【发布时间】:2011-02-17 16:44:20
【问题描述】:
我尝试使用以下代码通过 WebView 显示 PDF 文件 -
webview.loadUrl("http://www.mywebsite.co.uk/floorplan.pdf");
或
Uri uri = Uri.parse("http://www.mywebsite.co.uk/floorplan.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
使用任何一种方法都无法显示 PDF,除非我通过 Adobe 运行它(因此我的应用程序正在下载它),然后看起来很好。如何通过我的应用程序使用 Adobe 显示 PDF,或者我最好将 PDF 显示为图像?
【问题讨论】: