If you return true
it should NOT load the url in the WebView
, while false
will let the WebView
load the page.
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.endsWith("&like")) {
NetworkOperations.addlike(url);
return false;
} else {
return true;
}
}