I need to hide or show my app\'s icon in the launcher depending on some runtime information. I\'d like to still be able to run the activity by an explicit intent, so disabli
You can't do this directly, but you can create an activity alias in your AndroidManifest.xml
with the intent filter in question, and then enable or disable the alias using PackageManager#setComponentEnabledSetting(), leaving your other intent filters in the main copy of the Activity so they won't be affected.