code: public void browserSwitch(int requestCode, String url) {
          Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url))
                  .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  
          ChromeCustomTabs.addChromeCustomTabsExtras(mContext, intent);
  
          browserSwitch(requestCode, intent);
      }
docs: Open a browser or <a href="https://developer.chrome.com/multidevice/android/customtabs">Chrome Custom Tab</a>
  with the given url.
  
  @param requestCode the request code used to differentiate requests from one another.
  @param url the url to open.