首页 / ANDROID / Android中的守护进程
Android中的守护进程
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Android中的守护进程,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含813字,纯文字阅读大概需要2分钟。
内容图文
![Android中的守护进程](/upload/InfoBanner/zyjiaocheng/961/5cc62efce261481cb105e20a36751282.jpg)
是否有任何注册过程用于创建谷歌或任何其他注册站点的守护程序?
我们正在制作一个在后台运行的警报应用程序.我们可以创建守护进程还是提供其他方法?
解决方法:
它被称为“Service”:
an application component representing either an application’s desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use. Each service class must have a corresponding 07001 declaration in its package’s
AndroidManifest.xml
. Services can be started with 07002 and 07003.Note that services, like other application objects, run in the main thread of their hosting process. This means that, if your service is going to do any CPU intensive (such as MP3 playback) or blocking (such as networking) operations, it should spawn its own thread in which to do that work…
内容总结
以上是互联网集市为您收集整理的Android中的守护进程全部内容,希望文章能够帮你解决Android中的守护进程所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。