1. 关于 Service 的一些细节
- Service 的种类:Started Service 和 Bound Service,分别对应于 Context.startService(Intent) 和 Context.bindService;
- 如果一个 Service 在 onStartCommand 执行的过程中被终止,则已提交的 Intent 将得不到机会启动,该 Intent 仍会被视为一个挂起的请求,而非一个已启动的请求(started request);
|
|
Local Binding
软件设计及开发者
|
|
Local Binding
生命期 :New -> Runnable -> Blocked/Waiting(Thread.sleep() | Thread.yield()) -> Terminated
Uncaught Exceptions
|
|
在 Activity 中保持线程
计算机科学领域的任何问题都可以通过增加一个间接的中间层来解决。
|
|
初级:

|
|