简体   繁体   English

从启动器中排除应用程序

[英]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>

Remove the android.intent.category.LAUNCHER category: 删除android.intent.category.LAUNCHER类别:

<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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM