启动应用程序,而接口接收boot_completed [英] Launch application without an interface to receive boot_completed

查看:134
本文介绍了启动应用程序,而接口接收boot_completed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的服务为Android启动时BOOT_COMPLETED是received.It 3.1之前的正常工作的版本。

I have developed a Service for Android that starts when BOOT_COMPLETED is received.It works fine on versions prior to 3.1.

我更新版本的强硬。我理解应用程序必须以接收该广播推出。我如何启动我的应用程序,如果我没有一个用户界面?

I newer versions tough I understand the application must be launched in order to receive this broadcast . How can I launch my application if I don't have an User Interface ?

推荐答案

您添加一个用户界面,用户可以启动一个活动的形式。此外,这就是你需要:

You add a user interface, in the form of an activity that the user can launch. Besides, this is where you need to:

  • 允许用户停止和启动您的服务,因为用户可能不希望您的服务进行全天候运行,并且您不希望用户不得不诉诸强制关闭

  • Allow the user to stop and start your service, since the user may not want your service to be running 24x7 and you do not want the user to have to resort to Force Close

显示你的文档

显示您的许可协议

这篇关于启动应用程序,而接口接收boot_completed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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