I want to check if my Checkboxes are checked to change some values.
I got the answer for radioButton which is inserted to a RadioGroup and we can simply use : 

```
radioGroup.setOnCheckedChangeListener(new new OnCheckedChangeListener(){
@Override
    public void onCheckedChanged(RadioGroup group, int checkedId)
    { . . . } 
}

```

i'm looking for something like this ,However this approach is differ from Checkboxes because there is no widget like CheckboxGroup to use setOnCheckedChangeListener On it .

For example i have checkbox1 and checkbox2. how can i get as long as these two checkboxes are checked to changing some value like : 

```
if(checkbox1==isChecked && checkbox2==isChecked)
//Do sth ...
else 
//Do sth Different

```

EDIT : Maybe i could not explain my problem perfectly , this is just like question below but for Checkboxes
[How to check state Changing of Radio Button android?](https://stackoverflow.com/questions/45678797/how-to-check-state-changing-of-radio-button-android)