public static Intent createOpenBrowserIntent(String url){
  if (!url.contains("://")) {
    url="http://" + url;
  }
  return new Intent(Intent.ACTION_VIEW,Uri.parse(url));
}

public static Intent createOpenBrowserIntent ( String url ) { if ( ! url . contains ( "://" ) ) { url = "http://" + url ; } return new Intent ( Intent . ACTION_VIEW , Uri . parse ( url ) ) ; }
creates intent for opening browser .
