当前位置:网站首页>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
边栏推荐
猜你喜欢

3GPP LTE/NR信道模型

如何选择专业、安全、高性能的远程控制软件

Tensorflow中使用tf.argmax返回张量沿指定维度最大值的索引

Discourse 的关闭主题(Close Topic )和重新开放主题

基于FPGA的FIR滤波器的实现(5)— 并行结构FIR滤波器的FPGA代码实现

【软件测试】(北京)字节跳动科技有限公司二面笔试题

接口测试的基础流程和用例设计方法你知道吗?

进制转换间的那点事

go-grpc TSL认证 解决 transport: authentication handshake failed: x509 certificate relies on ... ...

MySQL使用GROUP BY 分组查询时,SELECT 查询字段包含非分组字段
随机推荐
语音信号处理:预处理【预加重、分帧、加窗】
从何跟踪伦敦金最新行情走势?
1061 判断题 (15 分)
How Unity programmers can improve their abilities
tf中自减操作;tf.assign_sub()
1046 划拳 (15 分)
DDR4内存条电路设计
js判断图片是否存在
How Unity handles C# under the hood
SQL滑动窗口
js根据当天获取前几天的日期
1046 punches (15 points)
数仓开发知识总结
2.1-梯度下降
matplotlib
TF中使用softmax函数;
【LaTex-错误和异常】\verb ended by end of line.原因是因为闭合边界符没有在\verb命令所属行中出现;\verb命令的正确和错误用法、verbatim环境的用法
Service的两种启动方式与区别
1036 跟奥巴马一起编程 (15 分)
TF中的四则运算