Bundle bundle = new Bundle();
bundle.putInt(UPPER_NUM, Integer.parseInt(etNum.getText().toString()));
Message msg = new Message();
msg.setData(bundle);
calThread.mHandler.sendMessage(msg);
int upper = msg.getData().getInt(UPPER_NUM);
原文:http://www.cnblogs.com/fruitbolgs/p/4164473.html