How to get the list of installed Browser Apps in an Android Device Programmatically (Package Names)

怎甘沉沦 提交于 2019-12-25 18:27:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!