I build a WebView which displays a website. The website contains links without a target=\"_blank\" attribute and some with it.
I need to op
private WebView WEB_v;
if you open new window when you click a link any 2nd window, then it I will open by another browser
WEB_v.getSettings().setSupportMultipleWindows(true);
WEB_v.setWebChromeClient(new WebChromeClient() {
@Override
public boolean onCreateWindow(WebView view, boolean dialog, boolean userGesture, android.os.Message resultMsg)
{
WebView.HitTestResult result = view.getHitTestResult();
String data = result.getExtra();
Context context = view.getContext();
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(data));
context.startActivity(browserIntent);
return false;
}
});