我的代码在这里:
private Button.OnClickListener get_view_button_listener = new Button.OnClickListener() {
public void onClick(View v) {
String r = "";
if (chxbx1.isChecked()) {
r = r + "\n" + chxbx1.getText() + ".............." + txtbox1.getText().toString();
}
if (chxbx2.isChecked()) {
r = r + "\n" + chxbx2.getText() + ".............." + txtbox2.getText().toString();
}
if (chxbx3.isChecked()) {
r = r + "\n" + chxbx3.getText() + ".............." + txtbox3.getText().toString();
}
if (chxbx4.isChecked()) {
r = r + "\n" + chxbx4.getText() + ".............." + txtbox4.getText().toString();
}
kaboom.setText(r);
}
};
我想要的是这个产品将是我通过套接字TCP传输到我的服务器的输入。你能不能帮助我吗?