code: public static Intent newOpenWebBrowserIntent(String url) {
          if (!url.startsWith("https://") && !url.startsWith("http://")) {
              url = "http://" + url;
          }
          Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
          return intent;
      }
docs: Creates an intent that will launch a browser (most probably as other apps may handle specific URLs, e.g. YouTube)
  to view the provided URL.
  
  @param url the URL to open
  @return the intent