@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView = (TextView) findViewById(R.id.textView); radioGroup= (RadioGroup) findViewById(R.id.radiogroup); radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener(){ @Override public void onCheckedChanged(RadioGroup group, int checkedId) { // checkedId is the RadioButton selected RadioButton radioButton_250=(RadioButton)findViewById(checkedId); textView.setText(radioButton_250.getText()); RadioButton radioButton_500=(RadioButton)findViewById(checkedId); textView.setText(radioButton_500.setText("70")); } }); } The first button that draws text works fine, but the second textView.setText(radioButton_500.setText("70")); Do not let me, how can I quickly fix it?