IntentService

IntentService (本质:Service+HandlerThread+Intent) 需要采用startService来启动,onbind()启动不了。 至少要有一个空的构造方法 优点:1,提高子线程的优先级 2,减轻主线程的压力 IntentService内部会创建一个HandlerThread,onHandlerIntent的执行在HandlerThread线程中执行 -------
相关文章
相关标签/搜索