title: RadioGroup to if statement?
body: <p>so theres 8 radiogroups and it has 2 buttons each (Id's are Yes and No) what i want is if there are 4 YES then <strong>openPositiveDialog</strong> else <strong>OpenNegativeDialog</strong></p>
  <p>Here are the codes</p>
  <pre><code>    @Override
      public void onClick(View v) {
          int RadioGroupIdFever = RadioGroupFever.getCheckedRadioButtonId();
          radioButton1 = (RadioButton)findViewById(RadioGroupIdFever);
  
          int RadioGroupIdDryCough = RadioGroupDryCough.getCheckedRadioButtonId();
          radioButton2 = (RadioButton)findViewById(RadioGroupIdDryCough);
  
          int RadioGroupIdRunnyNose = RadioGroupRunnyNose.getCheckedRadioButtonId();
          radioButton3 = (RadioButton)findViewById(RadioGroupIdRunnyNose);
  
          int RadioGroupIdSoreThroat = RadioGroupSoreThroat.getCheckedRadioButtonId();
          radioButton4 = (RadioButton)findViewById(RadioGroupIdSoreThroat);
  
          int RadioGroupIdAchesAndPain = RadioGroupAchesAndPain.getCheckedRadioButtonId();
          radioButton5 = (RadioButton)findViewById(RadioGroupIdAchesAndPain);
  
          int RadioGroupIdFatigue = RadioGroupFatigue.getCheckedRadioButtonId();
          radioButton6 = (RadioButton)findViewById(RadioGroupIdFatigue);
  
          int RadioGroupIdBreathing = RadioGroupBreathing.getCheckedRadioButtonId();
          radioButton7 = (RadioButton)findViewById(RadioGroupIdBreathing);
  
          int RadioGroupIdMentalState = RadioGroupMentalState.getCheckedRadioButtonId();
          radioButton8 = (RadioButton)findViewById(RadioGroupIdMentalState);
  
          if(v==Button_Next)
              SubmitToSheet();
  
  
              openPositiveDialog();
  
              openNegativeDialog();```
  </code></pre>