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

标签 android android-intent android-service

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

相关文章:

java - AlertDialog.Builder 中的 Android stopService()

android - 没有 GUI 的应用程序启动后会阻止当前屏幕

android - 如果设备的 Android 版本不支持,Play 商店是否可以提供下载以前版本的应用程序? (就像 iOS 一样)

android - 是否可以在运行时更改 Android 中的布局宽度和高度?

android - 在 fragment 中按回时列表会加倍

Android 在通知 Intent 上添加额外内容

android - Android 3.1+ 中的 BroadcastReceiver 问题

java - 蓝牙设备(主)启动与 Android 的蓝牙连接

java - 在 Android 应用程序之间共享数据的最佳实践

android - 根据 Android Sharesheet 中选择的应用程序将特定文本共享到另一个应用程序