Unable to get intent filters from a package

只愿长相守 提交于 2020-01-03 15:30:17

问题


I want to list all the intent filters that are present in an package.

I am trying to do it using PackageManager class. I have set the flag PackageManager.GET_INTENT_FILTERS while fetching the PackageInfo object. But I dont know how to use it.

I was able to get all the info related to activites and receivers using the respective flags, but dunno how to proceed for intent-filters.

Any ideas how to solve this issue?


回答1:


Looks like intent filters are not exposed in the API and the flag effectively does nothing: http://code.google.com/p/android/issues/detail?id=3217



来源:https://stackoverflow.com/questions/18739243/unable-to-get-intent-filters-from-a-package

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