R
R
RookDeveloper2019-08-18 10:49:36
Java
RookDeveloper, 2019-08-18 10:49:36

How to open a new tab in Android Web View and close immediately?

Hello! Is there anyone who understands webview?
You just need to load the web application .... everything is OK if only internal links are opened ... but ... the VK widget is used for authorization, and when you click the authorization button, a new window opens and immediately closes window. close() in a normal browser... but in my application it doesn't close and stays on top of the original site... what should I do?

// указываем страницу загрузки
            mWebView.loadUrl("http://.../");

            // включаем поддержку JavaScript
            mWebView.getSettings().setJavaScriptEnabled(true);

            mWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

            mWebView.setVisibility(View.VISIBLE);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question