How to create/disable intent-filter programmatically?

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

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



        
3条回答
  •  猫巷女王i
    2020-12-05 20:59

    You can neither enable, disable, or create s programmatically.

    However, in your case, you only have one per component. In that case, you can enable and disable the component programmatically, via PackageManager and setComponentEnabledSetting(). In your case, enabling or disabling the activity would have the same basic effect as enabling or disabling its .

提交回复
热议问题