android - webview shouldOverrideUrlLoading doesn't work as expected? -
i have webview loads real url https://example.com
i open links according pattern in second webview.
i have following code:
public boolean shouldoverrideurlloading(webview view, string url) { // handle external url boolean openinnew = manageurl (url); log.i("openurl", url + " : " + openinnew); if (openinnew) { this.callback.openwebview2 (url); return true; } else { return false; } }
the second webview shows correctly external url want load.
the problem found happens original webview, redirected empty blank page (with loading icon).
is possible keep first webview in original page? thought shouldoverrideurlloading should enough.
maybe forgot something, appreciate.
thanks lot.
Comments
Post a Comment