参考:http://apps.hi.baidu.com/share/detail/33316734
new Thread(new Runnable() {
@Override
public void run() {
Looper.prepare();
todo();
Looper.loop();
} }).start();
}
}).start();