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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -