RadioGroup Check(id) not triggering setOnCheckedChangeListener in android
<p>I am having a radiogroup and added radio buttons dynamically to it. I am using radiogroup.check(id) for selecting the radiobutton inside Radiogroup. </p>

<pre><code>v = new RadioGroup(ctx);
int count = 0;
for (String Str : valueStr.get(Position)) {
    RadioButton rb = new RadioButton(ctx);
    rb.setId(count);
    rb.setTag(valueStrID.get(position).get(count));
    rb.setText(Str);
    if (formFieldObject.getFD_ValueField().equals(String.valueOf(Str))) {
        rbposition = count;
   }
   rb.setTextSize(fontSize);
   ((RadioGroup) v).addView(rb);
   count++;
}
</code></pre>

<p>And calling this method for selection</p>

<pre><code>((RadioGroup) v).check(rbposition);
</code></pre>

<p>But this is not triggering the Checkedchangelistener. What is the problem with the code?</p>