如何为我的应用程序创建服务?

发布于 2024-11-04 16:55:26 字数 112 浏览 4 评论 0原文

我正在构建一个 SIP 应用程序,它现在运行良好,我希望它在退出时继续作为服务工作以始终接收来电(要完全退出该应用程序,用户必须通过点击“退出”中的“退出”来确认它)菜单选项)。我该怎么做? 非常感谢您的帮助。

I'm building a SIP application, it works well now, and i want it to stay working as service when quit it to always receive incoming calls(to quit completely the app, the user has to confirm it by tapping "Exit" in the menu option). How can i do it ?
Thank you very much for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独陪着我 2024-11-11 16:55:26

那么您可以从阅读文档开始: http://developer.android.com/ Reference/android/app/Service.html

其中包含用于编写服务的各种示例代码。查看 ApiDemos 了解更多示例代码。

Well you could start by reading the documentation: http://developer.android.com/reference/android/app/Service.html

That has various sample code for writing services. Look at ApiDemos for more sample code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文