in the onClick()
method of the OK Button, you can add this code to start another Activity and pass the id of the checked radio button :
Intent intent = new Intent(FirstActivity.this, SecondActitvity.class);
intent.putextras("extra_selected_radio_button", checkedRadioButton.getId());
startActivity(intent);
and in the onCreate()
method of the SecondActivity
, you can retrieve the id of the selected radio button like this :
Intent intent = getIntent();
int radioButtonId = intent.getIntExtra("extra_selected_radio_button", -1); // -1 is the default value
PS : Check this tutorial to learn more about sending data between activities in Android.