Trying to open the browser with ACTION_VIEW intent but an activity from manifest is opened instead.
Here is my code
val url = "https://www.google.com"
val query = Uri.encode(url, "UTF-8")
val browserIntent = Intent(CATEGORY_BROWSABLE, Uri.parse(Uri.decode(query)))
browserIntent.setAction(ACTION_VIEW)
activity.startActivity(browserIntent)
For anyone else experiencing this.
The reason for this behaviour was I had a deeplink with domain of the url parsed. This is why an Activity in the app is started.