WEBVIEW JAVA problems opening external links

Asked

Viewed 16 times

0

Good morning, I’m having trouble in my Webview, I put my entire site to work in the APP, however... every time I click to open an external tab it opens externally, there is the possibility to open inside the app itself?

I have no knowledge with java.

My code:

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

WebView webView = findViewById(R.id.webView);
webView.loadUrl("meusite");

webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.