I\'ve been trying to find out how to create an intent that will open the user\'s preferred browser without specifying the URL. I know how to open it by giving a specific URL
Use below code
Intent sendIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.stackoverflow.com")); Intent chooser = Intent.createChooser(sendIntent, "Choose Your Browser"); if (sendIntent.resolveActivity(getPackageManager()) != null) startActivity(chooser);