gpt4 book ai didi

android - 运行应用程序但不是从启动器

转载 作者:行者123 更新时间:2023-11-29 00:38:35 35 4
gpt4 key购买 nike

我正在开发一个 android 服务应用程序,它会对某些 Intent 使用react。如您所知,在应用程序首次启动之前不会触发 Intent。因为我的应用程序不是交互式的,所以我不希望它显示在启动器(应用程序列表)中。我可以通过删除

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

来自 list 文件,但在那之后,我该如何执行该应用程序,因为它没有显示在任何地方? :|

谢谢。

最佳答案

在应用程序第一次启动后禁用启动器图标怎么样?

http://www.helloandroid.com/tutorials/removing-app-icon-launcher

虽然这

the icon will only disapper when the launcher is restarted, so likely on next phone reboot, forcing the launcher to restart is not recommended"

听起来不太好...

关于android - 运行应用程序但不是从启动器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11067704/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com