由网友(江挽.)分享简介:我有一个应用程序在那里我已经是一个web视图里呈现的网页按钮。I have an app where I've button on a webpage that is rendered inside a webview.现在就点击按钮,一个PDF文件被下载,然后在相同的需要同样的WebView里面被打开。Now...
我有一个应用程序在那里我已经是一个web视图里呈现的网页按钮。
I have an app where I've button on a webpage that is rendered inside a webview.
现在就点击按钮,一个PDF文件被下载,然后在相同的需要同样的WebView里面被打开。
Now on click of button , a pdf file gets downloaded , and the same would then need to be opened inside the same webview.
推荐答案
附加下载监听到网上查看和更改URL,如下:
attach a download listener to the web view and change the url as follows..
"http://docs.google.com/gview?embedded=true&url=http://www.abc.com/xxxxxyyyyyxz.pdf"
这是用来打开PDF链接而无需下载...
it's a link used to open pdf without downloading it...
我希望它解决您的问题。
I hope it solves your problem..
相关推荐
最新文章