I am using Webview to implement browser capabilities in my project. Lets say someone searches for download.com in google, searches for a software (in download.com), and then clicks on the download link. A request will be made to the server which will respond back with the respective download file. Now is there any way I can catch the server response so that I can send it to some other app (lets say, to a download manager)? Note that I don’t know when will the user click on the download link.
Thanks in advance.
WebView exposes a Download event that you could hook into to catch when something is going to be downloaded:
Alternatively, you could create your own implementation of an IDownloadListener:
and provide that to the WebView: