问题
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.
来源:https://stackoverflow.com/questions/43305961/how-to-get-the-list-of-installed-browser-apps-in-an-android-device-programmatica