I have a **number of check boxes creating dynamically**. 

Now i just want to **select any of them not more than one**. When i select the second one the first one should unselect. 

I can't use radio group. Any help

Here is my code .. i am creating check boxes dynamically 

private void createRadioButton() {
 cb = new CheckBox(fContext);

```
    cb.setTag(id++);
    cb.setOnCheckedChangeListener( new OnCheckedChangeListener() {

        @Override
        public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
             int getPosition = (Integer) buttonView.getTag();
             Log.i("comVisa","getPos =="+getPosition);

        }
    });

}

```