将应用程序安装到设备时自动启动服务 [英] Start a service automatically when app installed to device

查看:87
本文介绍了将应用程序安装到设备时自动启动服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在安装应用程序后自动启动服务.启动或设备启动后,服务正常运行.那么,在安装应用程序之后是否可以启动服务?

I want to start a service automatically when the app is installed. Service is working properly after a launch or after a device boot. So, is it possible to launch a service after installation of the app?

推荐答案

Google给出了正确的答案作为第一个匹配项,所以...您是否对此进行了一些研究? 如何在何时启动服务.apk首次安装

Google shows the correct answer as the first hit so ... have you done some research on this? How to start a Service when .apk is Installed for the first time

摘要:您不能这样做.

这篇关于将应用程序安装到设备时自动启动服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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