Opening a URL in Android's web browser from within application

Here’s how:

String url = "http://www.example.com";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));

Documentation of Intent.ACTION_VIEW

Comments

Be the first to comment!