android关于AsyncTask的分析
1.前提条件
Callable 和 Runnable 的区别在于:
1).Runnable 使用 run() 方法, Callable 使用 call() 方法
2).call() 有返回值, 而 run()方法没有。
3).call() 可以异常, 而run()不能抛出异常。
4).Runnable用Thread执行,而Callable是用执行器来执行的,比如ExecutorServi
原创
2012-05-24 15:37:43 ·
389 阅读 ·
0 评论