Changes between Version 8 and Version 9 of question_new
- Timestamp:
- 08/27/2014 11:49:12 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
question_new
v8 v9 26 26 处理四:异步多线程类的封装,模拟android AsyncQueryHandler 这个类封装,这样代码比较简洁,一般命名为[http://www.cnblogs.com/xitang/archive/2011/09/21/2184452.html AsyncWorkHandler][[BR]] 27 27 28 感觉最佳方式是AsyncTask,线程池可以免去新建线程的开销[[BR]] 29 30 AsyncTask的本质是一个线程池,所有提交的异步任务都会在这个线程池中的工作线程内执行,当工作线程需要跟UI线程交互时,工作线程会通过向在UI线程创建的Handler[[BR]] 31 28 32 29 33 ----
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)