This code works and hides my application icon:
PackageManager p = getPackageManager();
ComponentName componentName = new ComponentName("myPackageName", "MyLauncherClass");
p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
But I need hide another application icon.
When i replace myPackageName and MyLauncherClass with another application package name and launcher class, app force closed.
This means that i can hide my app icon only?