I have a simple helloworld app. I am trying to tell the Activity that a user clicked, "Cnn.com"
WebViewClient wc = new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.equals("http://cnn.com/")) {
//TELL ACTIVITY CNN WAS CLICKED
return true;
} else {
return false;
}
}
};
mWebView.setWebViewClient(wc);
How would I do this.
(I am coming from a C# .NET background)