title: Set Value of a CheckBoxPreference in an Activity
body: <p>Hello I need to know how to set a value programmatically.</p>
  
  <p>I am using that code</p>
  
  <pre><code> SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
                              .
                              .
                              .
  
  SharedPreferences.Editor geted = prefs.edit();
  geted.putBoolean("checkBox_Schedule", false);
  geted.commit();
  </code></pre>
  
  <p>But I dont see anything change</p>
  
  <p>The code of my xml for my checkboxPreference is</p>
  
  <pre><code> &lt;CheckBoxPreference
  
   android:defaultValue="false"
   android:dependency="checkBox"
   android:key="checkBox_Schedule"
   android:summary="On/Off"
   android:title="Schedule" /&gt;
  </code></pre>
  
  <p>One solution is to do</p>
  
  <pre><code> startActivity(new Intent(SetPreference.this, SetPreference.class));
  </code></pre>
  
  <p>But this is not what I want to do.</p>