PDF下载链接无效

时间:2015-07-24 08:44:07

标签: php android pdf

我正在使用MySQL数据库创建一个Android应用程序。我已经制作了一份PDF报告,点击按钮即可下载。我在我的Android设备中使用谷歌浏览器中的链接它运作良好。当我尝试在我的应用程序中使用相同的链接时,它似乎不起作用。到目前为止我所做的是我想通过点击一个按钮下载文件。我有以下代码:

confluence@ip-172-31-22-135:/usr/local/confluence/current/bin$ . start-confluence.sh

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing as current user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /usr/local/confluence/current/logs/catalina.out
Using CATALINA_BASE:   /usr/local/confluence/current
Using CATALINA_HOME:   /usr/local/confluence/current
Using CATALINA_TMPDIR: /usr/local/confluence/current/temp
Using JRE_HOME:        /usr/lib/jvm/java-8-oracle
Using CLASSPATH:       /usr/local/confluence/current/bin/bootstrap.jar:/usr/local/confluence/current/bin/tomcat-juli.jar
Using CATALINA_PID:    /usr/local/confluence/current/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

1 个答案:

答案 0 :(得分:0)

您的浏览器秘密启动PDF阅读器的处理(或者只是在该选项卡中启动带有pdf阅读器实例的新选项卡。这意味着,您的浏览器可以自动处理PDF的显示。但是您的应用程序看起来并不像。