分类: LINUX
2012-04-19 17:09:01
01 | class LooperThread extends Thread { |
02 | public Handler mHandler; |
03 |
04 | public void run() { |
05 | Looper.prepare(); |
06 |
07 | mHandler = new Handler() { |
08 | public void handleMessage(Message msg) { |
09 | // process incoming messages here |
10 | } |
11 | }; |
12 |
13 | Looper.loop(); |
14 | } |
15 | } |