title: How to add radio buttons to radio group
body: <p>I have a TableLayout and in the third column of every row I want to place a radio group.
  I build the RadioButtons like this:</p>
  
  <pre><code>rg = (RadioGroup) findViewById(R.id.radioGroup1);
  
  for (int k = 0; k &lt; size; k++) {
      rb[k] = new RadioButton(context);
      rg.addView(rb[k]);
  }
  </code></pre>
  
  <p>However this cause my app to crash, any ideas?</p>