title: How to force RadioGroup to select only one RadioButton at a time programatically?
body: <p>I am designing customize form programmatically where user can put a question and can add multiple options using radio buttons. I have taken RadioGroup and i am adding radio buttons in it. But while selecting i want only one radio button get selected at a time. How to implement it programmatically. Please help me..</p>
  
  <p>Here is my code</p>
  
  <pre><code>final RadioGroup radioGroup = new RadioGroup(getApplicationContext());
  radioGroup.setId(1);
  LinearLayout.LayoutParams p = new LinearLayout.LayoutParams(
                                  LinearLayout.LayoutParams.FILL_PARENT,
                                  LinearLayout.LayoutParams.WRAP_CONTENT);
  
  RadioButton radioButtonView = new  RadioButton(getApplicationContext());
  radioButtonView.setId(i++);
  radioButtonView.setText(addnew);
  
  radioGroup.addView(radioButtonView, p);
  loption.addView(radioGroup, p);
  </code></pre>
  
  <p>Thanks in advance,</p>