title: How to uncheck the radio buttons in group?
body: <p>I'm doing a quiz app I have a radio group with 4 radio buttons and I have one next button.</p>
  
  <p>While displaying First question and answers its no problem in check..when user gives next, the radio group should uncheck. How to implement this?</p>
  
  <p>when user select the option it should verify the answer is correct or incorrect. I have stored the correct answers in a array..When user toggle the options it shows error in toggle buttons. How to implement this?</p>
  
  <blockquote>
  <pre><code>   btn_practicerg.setOnCheckedChangeListener(new OnCheckedChangeListener(){
              @Override
              public void onCheckedChanged(RadioGroup group, int checkedId) { 
                  RadioButton radioButton = (RadioButton)group. findViewById(checkedId);
                  String temp = radioButton.getText().toString();
                  switch(btn_practicerg.getCheckedRadioButtonId()){
                  case R.id.RB1:
                      if (btn_practice1.isChecked()){
                          btn_practice2.setChecked(false);
                          btn_practice3.setChecked(false);
                          btn_practice4.setChecked(false);
                      }
                      break;
                  case R.id.RB2:
                      if (btn_practice2.isChecked()){
                          btn_practice1.setChecked(false);
                          btn_practice3.setChecked(false);
                          btn_practice4.setChecked(false);
                      }
                      break;
                  case R.id.RB3:
                      if (btn_practice3.isChecked()){
                          btn_practice1.setChecked(false);
                          btn_practice2.setChecked(false);
                          btn_practice4.setChecked(false);
                      }
                      break;
                  case R.id.RB4:
                      if (btn_practice4.isChecked()){
                          btn_practice1.setChecked(false);
                          btn_practice2.setChecked(false);
                          btn_practice3.setChecked(false);
                      }
                      break;
                  }
                  crrtans=new ArrayList&lt;String&gt;(new ArrayList&lt;String&gt;(crrtans));
                  if (temp.equals(crrtans.get(l))){
                  TextView txtRadio = (TextView) findViewById(R.id.rdtxt); 
                  txtRadio.setText("" + radioButton.getText() + " IS CORRECT");   
                  txtRadio.setTextColor(Color.parseColor("#008000"));
                 }else{
                TextView txtRadio = (TextView) findViewById(R.id.rdtxt); 
            txtRadio.setText("" + radioButton.getText() + "is INCORRECT");
            txtRadio.setTextColor(Color.parseColor("#FF0000")); 
                }
              }
       });
      Button nextBtn = (Button) findViewById(R.id.nxt_btn);
      nextBtn.setOnClickListener(new Button.OnClickListener(){
      public void onClick(View v){
           if (j == ques1.size() -1) {
                  showAlert1();
              }
            else{ 
              ++j;
              ++num;
              TextView txtque = (TextView) findViewById(R.id.que_txt); 
              txtque.setText("Q" + num +ques1.get(j));
                          }      
           });
  </code></pre>
  </blockquote>