private void initCheckbox(CheckBoxPreference checkbox,boolean checked,boolean enabled){
  checkbox.setChecked(checked);
  checkbox.setEnabled(enabled);
}

private void initCheckbox ( CheckBoxPreference checkbox , boolean checked , boolean enabled ) { checkbox . setChecked ( checked ) ; checkbox . setEnabled ( enabled ) ; }
initialize the service activation checkbox
