0
I want to open a link that will be clicked on Webview, I want this open in the browser. I have here the code:
mWebView.setWebViewClient(new WebViewClient()
{
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if(url.contains(url)) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(i);
}
return true;
}
});
But the first time it is clicked opens in the application itself!
Hi @Carlos. Further develop your answer. For example, explain what you do.
– João Martins
@Joãomartins, It’s okay like this? :)
– Henrique Horbovyi