Can I get URL from calling onCreateWindow
on WebView
?
@Override
public boolean onCreateWindow(WebView view, boolean isDialog, boole
You can get clicked URL by using this code.
@Override
public boolean onCreateWindow(WebView view, boolean isDialog, boolean isUserGesture,
Message resultMsg) {
Message href = view.getHandler().obtainMessage();
view.requestFocusNodeHref(href);
String url = href.getData().getString("url");
handleUrl(url); // handle the url here
return super.onCreateWindow(view, isDialog, isUserGesture, resultMsg);
}