int count = radioGroup.getChildCount(); ArrayList listOfRadioButtons = new ArrayList(); for (int i=0;i