Android TableLayout group dynamic radioButtons
<p>How can I group all dynamic created radioButtons into one group?</p>

<pre><code>while (cursor.moveToNext()) {
    TableRow row = new TableRow(this);
     // CheckBox chk = new CheckBox(this);
      RadioButton  radioBtn =  new RadioButton(this);
     // chk.setText(cursor.getString(cursor.getColumnIndex("from_text")));
      radioBtn.setText(cursor.getString(cursor.getColumnIndex("from_text")));
      radioBtn.
      row.addView(radioBtn);
      table.addView(row);
}
</code></pre>

<p><strong>Xml</strong></p>

<p></p>

<pre><code>&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" /&gt;

        &lt;TableLayout
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:id="@+id/myTable"/&gt;         
&lt;/LinearLayout&gt;
</code></pre>
