当前位置:网站首页>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
边栏推荐
- 从何跟踪伦敦金最新行情走势?
- NTT的Another Me技术助力创造歌舞伎演员中村狮童的数字孪生体,将在 “Cho Kabuki 2022 Powered by NTT”舞台剧中首次亮相
- 1071 Small Gamble (15 points)
- 1061 True or False (15 points)
- Edge provides label grouping functionality
- 1096 big beautiful numbers (15 points)
- TF中的四则运算
- How Unity handles C# under the hood
- DDR4内存条电路设计
- Service的两种状态形式
猜你喜欢
随机推荐
线程交替输出(你能想出几种方法)
cdc连sqlserver异常对象可能有无法序列化的字段 有没有大佬看得懂的 帮忙解答一下
基于FPGA的FIR滤波器的实现(5)— 并行结构FIR滤波器的FPGA代码实现
4.1 - Support Vector Machines
2022年中国软饮料市场洞察
Item 2 - Annual Income Judgment
1046 punches (15 points)
Serverless + domain name can also build a personal blog? Really, and soon
Pinduoduo API interface
2022-08-09 第四小组 修身课 学习笔记(every day)
2022-08-10 Group 4 Self-cultivation class study notes (every day)
【LeetCode每日一题】——844.比较含退格的字符串
Edge 提供了标签分组功能
数仓开发知识总结
Activity的四种状态
1091 N-Defensive Number (15 points)
Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引
项目2-年收入判断
js根据当天获取前几天的日期
MySQL使用GROUP BY 分组查询时,SELECT 查询字段包含非分组字段








