====================================
在Message中使用Bundle传递数据
Message msg = myHandler.obtainMessage();
Bundle b = new Bundle();
b.putInt("age" , 20);
b.putString("name" , "Jon");
msg.setData(b);
msg.sendToTarget();
class MyHandler extends Handler{
public void handleMessage(Message msg){
Bundle b = msg.getData();
int age = b.getInt("age");
String name = b.getString("name");
}
}