0

How to do that when in google.com and click a link to other website open as custom tabs

 String url = "https://www.google.com/";


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        web = findViewById(R.id.webView);
        WebSettings webSettings = web.getSettings();
        webSettings.setJavaScriptEnabled(true);

        webSettings.setAllowFileAccess(true);
        webSettings.setDomStorageEnabled(true);
        webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
        web.loadUrl(url);

    }
Saikrishna Rajaraman
  • 3,205
  • 2
  • 16
  • 29
Meow
  • 141
  • 9
  • Please check this link for actions in webview: https://stackoverflow.com/questions/5116909/how-can-i-get-onclick-event-on-webview-in-android – Anas Mehar Oct 31 '22 at 11:48

0 Answers0