当前位置:网站首页>Two state forms of Service
Two state forms of Service
2022-08-11 07:51:00 【is a small A】
Started status (started)
A service is "started" when an application component (such as an Activity) starts the service by calling startService().Once started, the service can run in the background indefinitely, even if the component that started the service has been destroyed, the service can not be stopped unless it is manually called, the service that has been started usually performs a single operation and does not return the result to the callerParty
Bound state (bound)
Features: The caller is bound to the service. Once the caller quits, the service will be terminated. A service is "bound" when an application component binds to it by calling bindService().A bound service provides a client-server interface that allows components to interact with the service, send requests, get results, and even perform these operations across processes using inter-process communication (IPC).A bound service will only run when bound to another application component.Multiple components can be bound to the service at the same time, but the service will be destroyed when they are all unbound
边栏推荐
- 6月各手机银行活跃用户较快增长,创半年新高
- 1071 Small Gamble (15 points)
- 线程交替输出(你能想出几种方法)
- 1106 2019 Sequence (15 points)
- How Unity handles C# under the hood
- 1071 小赌怡情 (15 分)
- How Unity programmers can improve their abilities
- When MySQL uses GROUP BY to group the query, the SELECT query field contains non-grouping fields
- 为什么C#中对MySQL不支持中文查询
- Redis源码:Redis源码怎么查看、Redis源码查看顺序、Redis外部数据结构到Redis内部数据结构查看源码顺序
猜你喜欢
随机推荐
2022-08-10 Group 4 Self-cultivation class study notes (every day)
Evolution and New Choice of Streaming Structured Data Computing Language
1056 组合数的和 (15 分)
Pytorch模型转ONNX模型
cdc连sqlserver异常对象可能有无法序列化的字段 有没有大佬看得懂的 帮忙解答一下
深度监督(中继监督)
网络电话软件或迎整顿 “免费”通话须迈安全关
Redis source code: how to view the Redis source code, the order of viewing the Redis source code, the sequence of the source code from the external data structure of Redis to the internal data structu
1051 复数乘法 (15 分)
Redis源码:Redis源码怎么查看、Redis源码查看顺序、Redis外部数据结构到Redis内部数据结构查看源码顺序
Depth (relay supervision)
计算YUV文件的PSNR与SSIM
4.1 - Support Vector Machines
我的创作纪念日丨感恩这365天来有你相伴,不忘初心,各自精彩
关于Android Service服务的面试题
那些事情是用Unity开发项目应该一开始规划好的?如何避免后期酿成巨坑?
matplotlib
go-grpc TSL认证 解决 transport: authentication handshake failed: x509 certificate relies on ... ...
1076 Wifi Password (15 points)
MySQL使用GROUP BY 分组查询时,SELECT 查询字段包含非分组字段