title: Set default checked Radio Button
body: <p>I'm creating a <code>RadioGroup</code> with <code>RadioButton</code>s dynamically and need to have one radio button checked by default.</p>
  
  <p>I've done this by using both <code>radioButton.setChecked(true)</code> and <code>radioButton.toggle();</code></p>
  
  <p>The problem I have is that when I at runtime select another radio button the first one stays checked so I end up with two checked radio buttons in the radio group.</p>
  
  <p>Has anyone had this problem and know how to solve it?</p>
  
  <pre class="lang-java prettyprint-override"><code>private RadioButton addRadioButton(String type, String price){
          RadioButton radio = new RadioButton(Order.this);
          radio.setText(type + " (" + Utils.formatCurrency(price) + ")");
          radio.setTextAppearance(Order.this, R.style.portalCellTextStyle);
          radio.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10);
          radio.setTag(price);
  
          if(type.toLowerCase().equals("m"))
              radio.toggle();
  
          return radio;
      }
  </code></pre>