Exclude Application from Launcher

How do I exclude an application from appearring in the Application Launcher. The code below is used to add on to the launcher but when I exclude it, the launcher still appears.

<activity android:name=".Application" android:label="@string/app_name">
   <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.LAUNCHER" />
   </intent-filter>
</activity>

Answers


Remove the android.intent.category.LAUNCHER category:

<activity android:name=".Application" android:label="@string/app_name">
   <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.DEFAULT" />
   </intent-filter>
</activity>

Need Your Help

IOS push notification delete

ios notifications apn

I use a phone gap plugin and xcode 5.

Why doesn't this segfault

c++ c segmentation-fault printf

I stumbled across something "interesting" and I cant put my finger why the behaviour isn't coherent.