Here is part of my code:
Intent sendIntent = new Intent(Intent.ACTION_VIEW, URI.parse("https://stackoverflow.com/");
Intent chooser = Intent.createChooser(sendIntent, "Open the link in: ");
startActivity(chooser);
Some extra information:
- I have multiple browsers installed like Chrome, Firefox and others.
- I tried clearing the Chrome defaults, cache and other application data by going to Settings > App Manager.
Other similar questions like:
Show browser list when opening a link in android shows the code that I am using as solution.
Action_view intent not showing browser options in chooser or don't have an accepted answer.