摘要:
内部实现主要是由Executor和Handler 一个应用中使用的所有的AsyncTask实例会共享全局的属性,也就是说如果AsynTask中的任务是串行执行,那么应用中所有的AsyncTask都会进行排队,只有等前面的任务执行完成之后,才会接着执行下一个AsyncTask中的任务;以下摘录部分源码 阅读全文
摘要:
基本用法: public class MyIntentService extends IntentService { private static final String TAG = MyIntentService.class.getCanonicalName(); /** * Creates a 阅读全文
摘要:
Activity启动的时候,入口函数main.在ActivityThread public static void main(String[] args) { SamplingProfilerIntegration.start(); // CloseGuard defaults to true an 阅读全文