Android Question Download Image from Webview

andrewj

Active Member
Licensed User
Longtime User
Hi,
I've got most of the features of my browser working well, and if I click on a link I can open or download no problem. However, there doesn't seem to be any way to detect an image under a user touch and download that. Is there a way to either (a) find the JavaScript object under a given X,Y coordinate in the WebView or (b) trigger an event like OverRideURL when an image is clicked?

Thanks
Andrew
 

DonManfred

Expert
Licensed User
Longtime User
Is that a page you have control over the html?
If yes you can add a javascriptinterface to the webview and then - with javascript - you can react on a click and call a sub in your app which downloads the file..
 
Upvote 0
Top