Webview problem

0

I'm trying to make an application in Webview, but when I click on a button that contains url it displays the if I want to open in which app, is there any way to make the app itself open the next page ?.

    
asked by anonymous 16.07.2018 / 00:27

1 answer

1

You have to set a WebViewClient in your webView.

It's simple to do this, see:

    webView.setWebViewClient(new WebViewClient(){
        public boolean overrideUrlLoading (WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
    });

With this, all links will open in the application.

    
16.07.2018 / 00:38