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.