Preferences Not Saved in DialogPreference
<p>My problem is the following: I have a component that extends DialogPreference. If I change the associated preference from outside the UI...</p>

<pre><code>SharedPreferences.Editor ed= sharedPreferences.Edit();
ed.putInteger("Setting",aValue);
ed.commit();
</code></pre>

<p>...then, when I open the dialog the selected preference has not changed. Even if the shared preference value is modified, it still contains the previously set value.</p>

<p>Does anyone have any idea what could be causing this?</p>
