- 关于Service的基本使用,参考:Service创建和生命周期
- 从调用
startService(new Intent(this, TestService.class));
开始,实际调用的是ContextWrapper.startService()
方法,源码如下:
这个mBase实际上是ContextImpl,对此如果有疑问,可以参考:@Override public ComponentName startService(Intent service) { return mBase.startService(service); }
ANR系列:Service触发ANR的源码分析
最新推荐文章于 2023-03-31 14:23:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)