Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove application from launcher programmatically in Android

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.

like image 485
Lucas S. Avatar asked Jun 09 '09 23:06

Lucas S.


1 Answers

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

like image 173
CommonsWare Avatar answered Oct 15 '22 11:10

CommonsWare