Search code examples
androidmenuiconslauncherinvisible

No launcher icon


I have an interesting problem - at least for me. I don't want my application to have a launcher icon in the menu - I start it remotely and I don't want to show it up in the menu.

How can I solve that?

My idea is deleting the following from the manifest:

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

Would this solve my problem?


Solution

  • That's what i would do. This defines the gateway activity to your application and doesn't affect the functionality. If no activity has this filter, there won't be an icon to launch it manually, precisely what you want.