摘要:
一、深入理解IntentService1. 它存在的目的和意义:即使开发者不了解消息队列中涉及到的 Handler/Thread/MessageQueue/Looper/Message等类的概念作用、关系,也可以轻松开发出自定义消息队列2. 系统封装HandlerThread和IntentService的过程3. IntentService的使用步骤 1) 继承IntentService 2) 添加无参数的构造方法,并调用super("线程名称") 3) 重写onHandleIntent()处理消息 4) 在Activity中像使用普通服务一样启动Service start 阅读全文