IntentService的实现

IntentService 是继承于 Service 并处理异步请求的一个类,在 IntentService 内有一个工做线程来处理耗时操做,启动 IntentService 的方式和启动传统 Service 同样,同时,当任务执行完后,IntentService 会自动中止,而不须要咱们去手动控制。 另外,能够启动 IntentService 屡次,而每个耗时操做会以工做队列的方式在Intent
相关文章
相关标签/搜索