我正在开发一个 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/