Question: I'm just wondering how to fire up an Intent to the phone's browser to open an specific URL and display it.

Can someone please give me a hint?

Answer: 
In some cases URL may start with "www". In this case you will get an exception:

```
android.content.ActivityNotFoundException: No Activity found to handle Intent

```

The URL must always start with "http://" or "https://" so I use this snipped of code:

```
if (!url.startsWith("https://") && !url.startsWith("http://")){
    url = "http://" + url;
}
Intent openUrlIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(openUrlIntent);

```
### Sending an Intent to Browser to open specific URL:

```
String url = "https://www.stackoverflow.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url)); 
startActivity(i); 

```

### could be changed to a short code version ...

```
Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("http://www.stackoverflow.com"));      
startActivity(intent); 

```

or

```
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.stackoverflow.com")); 
startActivity(intent);

```

### or even more short!

```
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.stackoverflow.com")));

```

More info about **[Intent](http://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW)**

=)