Question: I've tried my best to remove `app icon` from `launcher`, everytime it fails.. Sometimes icon is removed but the app fails to run (I've intergrated the app in `Settings` and `onClick` I called to its `MainActivity`. However normal app runs fine)
can anyone please help me out?

Answer: 
```
try{
    PackageManager p = getPackageManager();
    p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
}
catch (Exception e) {
    e.printStackTrace();
}

```
Remove the Intent filter for launcher from your AndroidManifest.xml

Remove this

```
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

```