Personal want to open a link that will be clicked on WebView, I want it to open in the browser. I have the code here:
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 it opens in the app itself!