如何检测<a href=""> link is clicked in an android webview?

时间:2017-09-21 14:12:44

标签: android android-webview mobile-webkit

I currently have public boolean shouldOverrideUrlLoading(WebView view, String url) { implemented.

However it only gets triggered when a url with a valid scheme is present with http/s or a custom scheme (IE: https://www.google.com,app:// XXXX)。

如果我未在链接<a href="www.google.com">test</a>中包含有效方案,则永远不会调用shouldOverrideUrlLoading。

是否可能检测到在Android网页浏览中点击<a href>链接的时间,即使网址不包含有效的链接方案?

0 个答案:

没有答案