一、Android的线程模型
run
runnable
二、子线程与主线程通信
obtainMessage()
sendMessage()
handleMessage()
三、Runnable
四、synchronized同步
五、线程状态Thread States
Android的线程状态与Java的线程状态相似。
六、 AsyncTask 异步任务
AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.
(1)AsyncTask 内部的实现 : AsyncTask源码
(未学习)
(2)使用AsyncTask的情况:
(未写)
七、BluetoothChat