This is a part of code, I click a link like <a href="www.abc/file.php?download&sn=6"></a>
, it should go if() but it always run the else() one,
help me to check the code thx :)
public class WebClient : WebViewClient
{
public override bool ShouldOverrideUrlLoading(WebView view, string url)
{
if (url.Contains("download"))
{
var url2 = "https://www.google.com.tw/";
view.LoadUrl(url2);
}
else
{
//return base.ShouldOverrideUrlLoading(view, url);
view.LoadUrl(url);
}
return true;
}
my complete code is here except the webviewclient part,it's different in this case.