我正在开发一个可以呈现某些网站的应用程序。
我正在使用webview来做这件事,但我遇到了一个大问题。
我无法拦截任何iframe内部的点击,例如访问此内容 网址:http://clikseguro.com/Search.aspx?q=android
当我点击此横幅时,您会在左侧看到横幅 他们将在新标签页或新窗口中打开的任何PC网络浏览器。但是 android我无法拦截这个事件并且页面被加载到里面 iframe中。
无论如何都有这个点击?
此点击不会调用shouldOverrideUrlLoading
我的WebView有WebViewClient和WebChromeClient。
由于
我解决了IT问题。
你刚设置:
mWebView.getSettings().setSupportMultipleWindows(true);
并覆盖
public boolean onCreateWindow(WebView v, boolean d, boolean u, Message r)
因此,您可以在iframe(链接,img,电子邮件)中收到任何点击
由于