1.this.runOnUiThread(Runnable);
2.btn.post(Runnable)
3.btn.postDelayed(Runnable,200)就是多了时间没有啥;
4.new Handler().postDelayed(new Runnable(),时间)
5.Hanlder
btn= (Button) findViewById(R.id.btn); mHandler=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); String msgword= (String) msg.obj; btn.setText(msgword); } }; btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Message message=new Message(); message.obj="word"; mChickHandler.sendMessage(message); } }); new Chick().start(); } private class Chick extends Thread{ @Override public void run() { super.run(); Looper.prepare(); mChickHandler=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); String mess= (String) msg.obj; String mainMess=mess+"真的可以的"; Message message=new Message(); message.obj=mainMess; mHandler.sendMessage(message); Log.d(TAG,mess+"获取到的消息"); } }; Looper.loop(); } }