How to create/disable intent-filter programmatically?

后端 未结 3 1899
死守一世寂寞
死守一世寂寞 2020-12-05 20:35

I have three activity and three Intent Filters for them in the Android Manifest.



        
3条回答
  •  死守一世寂寞
    2020-12-05 20:42

    If your Activity had multiple intent-filters then you could disable a specific intent-filter by creating an activity-alias with the intent-filter you want to disable and disable just the Activity alias. See: https://developer.android.com/guide/topics/manifest/activity-alias-element.html

提交回复
热议问题