android - How to read response from loadUrl()? -
i'm trying fetch , display webpage using webview, there chances of page redirection when webpage loaded, there option of reading url's coming response first request? have perform condition checks based on response url.
look @ shouldoverrideurlloading():
webviewclient wvc = new webviewclient() { @override public boolean shouldoverrideurlloading(webview view,string url) { if (!url.startswith("http://m.youtube.com/")) { // return true; } else if (url.startswith("http://m.youtube.com/watch?")) { // different return true; } return false; } };
Comments
Post a Comment