How to list all Browsers installed on Android?

1

How do I list / check all browsers installed on an Android device via Java?

    
asked by anonymous 27.08.2015 / 22:05

1 answer

2

It is impossible to know / determine which applications are of the Browser type, for the simple reason that there is no identifier informing this for Android. It is also very risky to look for all packages that have browser , for example.

One suggestion is that you can list, for example, which Activity 's can open a certain Intent with a URL:

PackageManager packageManager = context.getPackageManager();
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://www.google.com"));
List<ResolveInfo> list = packageManager.queryIntentActivities(intent,
        PackageManager.MATCH_DEFAULT_ONLY);
        for (ResolveInfo info : list) {
            String name = info.name;
        }
    
27.08.2015 / 22:15