Chcę umieścić Listenera na CheckBox. Szukałem info i wygląda to tak:
satView = (CheckBox)findViewById(R.id.sateliteCheckBox);
satView.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
if (isChecked){
// perform logic
}
}
});
Problem polega na tym, że Eclipse myśli, że jest to OnCheckedChangeListenerdla a, RadioGroupi to nie działa. Jak mogę to naprawić?