Reputation: 1399
How would I stop a webview from opening after I click on a link? I also need to extract the URL address so I can put it into a string.
Upvotes: 0
Views: 36
Reputation: 11
Set WebViewClient :
webView.setWebViewClient(new WebViewClient(){
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
// TODO do something with url
return true;
}
});
Upvotes: 1