To remove an application from Launcher, just do not put these lines with the main Activity in AndroidManifest.xml
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter>
and if you want to remove it programmatically, use PackageManager.setComponentEnabledSetting to remove it from Launcher as:
ComponentName componentToDisable = new ComponentName("com.xxx.apptodisable", "com.xxx.apptodisable.LauncherActivity"); getPackageManager().setComponentEnabledSetting( componentToDisable, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
source share