Android : Value of check box in SharedPreferences is not reflected at UI
<p>In onResume of my PrefereneActivity, I have the following code :</p>

<pre><code>SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
    boolean isEnabled = sp.getBoolean("check_enabled", false);
</code></pre>

<p>The value of isEnabled is false, however, in the UI the checkbox is still shown as selected. Why is it so?</p>
