title: Dynamic Radio Button Control
body: <p>Code ...{</p>
  
  <pre><code>private void createRadioButton() {
  
          final RadioButton[] rb = new RadioButton[5];
          for(int i=0; i&lt;5; i++){
              rb[i]  = new RadioButton(this);
              ll.addView(rb[i]); 
              rb[i].setText("Test");
           }
           ll.addView(submit); 
            submit.setOnClickListener(new View.OnClickListener() {
               public void onClick(View v) {
                  for(int i = 0; i &lt; 5; i++) { 
                      ll.removeView(rb[i]); 
                  }  
                  ll.removeView(submit);
                  Questions();
           }});   
      }
  </code></pre>
  
  <p>The issue i am having is that the radio buttons appear and the user can select any one. Being a beginner im sure i am not setting the radio buttons up correctly. The user is able to select all five buttons and then once selected they cant uncheck them either. The user should only be able to select one option from the five...how can i make this possable?</p>