[笔记] Android Service 使用注意事项

来源:互联网 发布:国民生产总值c语言 编辑:程序博客网 时间:2024/05/21 10:21

1. The service remains running until it stops itself with stopSelf() or another component stops it by calling stopService().

2. If a component calls bindService() to create the service (and onStartCommand() is not called), then the service runs only as long as the component is bound to it. Once the service is unbound from all clients, the system destroys it.


参考链接:http://developer.android.com/guide/components/services.html

0 0