public boolean onPreferenceChange(Preference preference,Object newValue){
  if (Boolean.parseBoolean(SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE))) {
  }
 else {
    setAirplaneModeOn((Boolean)newValue);
  }
  return true;
}

public boolean onPreferenceChange ( Preference preference , Object newValue ) { if ( Boolean . parseBoolean ( SystemProperties . get ( TelephonyProperties . PROPERTY_INECM_MODE ) ) ) { } else { setAirplaneModeOn ( ( Boolean ) newValue ) ; } return true ; }
called when someone clicks on the checkbox preference .
