Remove application from launcher programmatically in Android

后端 未结 1 1005
抹茶落季
抹茶落季 2020-12-09 04:05

Is there a way of removing an activity from the home launcher at runtime? I mean removing Intent.CATEGORY_LAUNCHER from its properties or something similar.

相关标签:
1条回答
  • 2020-12-09 04:51

    You can disable a component via PackageManager#setComponentEnabledSetting(), which will have the effect of removing it from the Launcher.

    0 讨论(0)
提交回复
热议问题