handler用法

handler用来启用一个新的线程,来刷新ui

Handler  handler = new Handler();
handler.post(
  new Runnable(){
    public void run(){
      textView.setText("我是用来刷新ui的");  
    }  
  }
);

 

posted on 2016-02-10 19:44  Simle  阅读(128)  评论(0编辑  收藏  举报