模块运行有错 不明白
程序代码:
private void sendMsg() { String string = new String(""); string += "昵 称:"; string += etName.getText().toString() + "\n\n"; string += "密 码:"; string += etPassword.getText().toString() + "\n\n"; string += "性 别:"; if (rdFamle.isChecked()) { string += "女\n\n"; } if (rdMale.isChecked()) { string += "男\n\n"; } string += "爱 好:"; if (cbreading.isChecked()) { string += cbreading.getText().toString() + "\t"; } if (cbWatching.isChecked()) { string += cbWatching.getText().toString() + "\t"; } if (cbBasket.isChecked()) { string += cbBasket.getText().toString() + "\t"; } if (cbPlaying.isChecked()) { string += cbPlaying.getText().toString() + "\t"; } string += "\n\n"; Intent intent = new Intent(registActivity.this, showRegistMsgActivity.class); Bundle bundle = new Bundle(); bundle.putString("Key", string.toString()); intent.putExtras(bundle); startActivity(intent); }