I have developed an app with a WebView in which a login page is displayed. However, as the login is no way to know which will be the next page to show, so it opens the browser outside the app. Would there be any chance that this new page could be opened in the webView itself?
public class MainActivity extends AppCompatActivity {
private TextView texto;
private WebView web;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
web=(WebView)findViewById(R.id.webV);
//Habilitar JavaScript
web.getSettings().setJavaScriptEnabled(true);
web.loadUrl("https://www.launcher/");
}