title: android onCheckedChanged for radiogroup
body: <p>I'm writing an <code>Activity</code> in android where I have two radio buttons under a RadioGroup. One of them is checked by default. But I can't trigger the event in <code>onCreate</code> method so that I can do something in that. The <code>onCheckedChanged</code> is running fine when clicked on.</p>
  
  <pre><code>RadioGroup ItemtypeGroup = (RadioGroup) findViewById(R.id.rechargeItemtype);
      RadioButton providerRadio = (RadioButton) findViewById(R.id.a);
      providerRadio.performClick();
  
      ItemtypeGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
          @Override
          public void onCheckedChanged (RadioGroup group,int checkedId){
  
              Log.d("chk", "id" + checkedId);
  
              if (checkedId == R.id.a) {
                  //some code
              } else if (checkedId == R.id.b) {
                  //some code
              }
          }
      });
  </code></pre>