code: public static Intent openLink(String url) {
          // if protocol isn't defined use http by default
          if (!TextUtils.isEmpty(url) && !url.contains("://")) {
              url = "http://" + url;
          }
  
          Intent intent = new Intent();
          intent.setAction(Intent.ACTION_VIEW);
          intent.setData(Uri.parse(url));
          return intent;
      }
docs: Open a browser window to the URL specified.
  
  @param url Target url