How to get the list of installed Browser Apps in a

2019-09-21 01:27发布

问题:

How to get the list of Installed Browser Apps Package Names in an Android Device Programmatically, So that I have to show the list of Browser Apps in my Mobile.

回答1:

Create an Intent that describes the type of activity that you want to match. Pass that to queryIntentActivities() on a PackageManager. The resulting list of ResolveInfo objects contains details of the activities — and their associated apps — that match the Intent. If the list is empty, there are no matches.