Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 557
keybee Avatar asked Feb 02 '26 08:02

keybee


2 Answers

Delete that:

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

And you won't have a launcher icon.

like image 118
Ahmad Avatar answered Feb 04 '26 00:02

Ahmad


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.

like image 41
Shakti Avatar answered Feb 04 '26 00:02

Shakti