I try to explain. In a web app, I have a button "download". So this button has a server side script that sends out to browser the file. Normally, if you push this button with the default browser, the action is the physical download of a file. I thought, if webview is based on default android's webbrowser, I think is possible to obtain the same effect. Could it be?
Sub WebView1_OverrideUrl (Url As String) As Boolean
If Url.EndsWith(".pdf")
downloadfile(Url) 'function to download file
Return True 'Don't try to navigate to this URL
End If
Return False
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.