没有应用启动器图标的应用 [英] Application without app launcher icon

查看:67
本文介绍了没有应用启动器图标的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个非常老的问题,但是有了新的Android API(目前我正在使用API​​ 19+)我们可以做到吗?

I know that this is a very old question, but with the new Android API (currently I'm working on API 19+) could we do it?

我无法删除:

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

来自清单文件,因为Android Studio无法编译该应用程序:

from manifest file because Android studio will not compile the app:

未找到默认活动

已更新:谢谢,我决定以编程方式进行

Updated: Thanks all, I have decided to do it programmatically

推荐答案

因为Android Studio无法编译该应用

because Android studio will not compile the app

是的,它将.Build> Build APK可以正常工作.

Yes, it will. Build > Build APK works just fine.

Android Studio不会运行该应用程序,因为它知道如何运行这样的应用程序,但这不会阻止您编译该应用程序并生成APK.

Android Studio will not run the app, because it does know how to run such an app, but that does not prevent you from compiling the app and generating an APK.

没有应用启动器图标的应用

Application without app launcher icon

自Android 3.1以来,这种情况并未发生明显变化.欢迎您编写没有启动器图标的应用程序.在某些特殊情况之外,该应用将无用,因为它的任何代码都不会运行.

This situation has not changed significantly since Android 3.1. You are welcome to write an app without a launcher icon. Outside of a few specialized scenarios, that app will be useless, as none of its code will ever run.

这篇关于没有应用启动器图标的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆