I'm creating and ACTION_VIEW intent with a URI like https://www.example.com/somedirection.
There's an app, lets call it the EXAMPLEAPP than can open that intent, but if you do not have that app in your phone. Then you can open the URI in any browser.
The thing is that I don't want the user to use the EXAMPLEAPP to follow that intent because I'm having some problems when the user returns to my app (they have to make a payment in that intent).
So, if the user doesn't have the app, no problem, everything good. But if the user have the EXAMPLEAPP the intent chooser only shows that app, it doesn't show any browser, but, as I said, I don't want the user to complete the intent with that app.
Why is the chooser not showing any browser (I have Chrome installed) and only the app when the app is installed?
This is my code.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(electronicLink));
Intent chooser = Intent.createChooser(intent, "Some title");
if (intent.resolveActivity(packageManager) != null) {
context.startActivity(chooser);
}
I have also tried to call
List<ResolveInfo> list = packageManager.queryIntentActivities(intent, 0);
And I'm only seeing the app when it's installed and Chrome when it's not.