Code example for CheckBoxPreference

Methods: setOnPreferenceClickListener

0
        mProfActive.setOnPreferenceClickListener(this);
        mProfSilent.setOnPreferenceClickListener(this);
        mProfVibrate.setOnPreferenceClickListener(this);
        mProfRing.setOnPreferenceClickListener(this);
        mProfOverride.setOnPreferenceClickListener(this);
        mProfCustom.setOnPreferenceClickListener(this);
        mContactScreen.setOnPreferenceClickListener(this);
        mProfRingVolume.setOnPreferenceClickListener(this);
        mEmailNotify.setOnPreferenceClickListener(this);
        mSmsNotify.setOnPreferenceClickListener(this);
        mMmsNotify.setOnPreferenceClickListener(this);
        mPhoneNotify.setOnPreferenceClickListener(this);
    } 
     
 
    /* 
     * I guess this is how it is suppose to work but seems silly 
     * OnPreferenceChange() did not work with the checked items, it would 
     * provide the previous state and not the current state which was screwing 
     * up everything Maybe I misread the docs but if a state is changed that 
     * means just that it changed so if i click a check box to checked, the