Code example for CheckBoxPreference

Methods: isChecked

0
        } 
    } 
 
    @Override 
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (requestCode == REQUEST_CODE_EXIT_ECM) {
            Boolean isChoiceYes = data.getBooleanExtra(EXIT_ECM_RESULT, false);
            // Set Airplane mode based on the return value and checkbox state 
            mAirplaneModeEnabler.setAirplaneModeInECM(isChoiceYes,
                    mAirplaneModePreference.isChecked());
        } 
    } 
 
    @Override 
    protected int getHelpResource() { 
        return R.string.help_url_more_networks; 
    } 
}