Use MultiSelectListPreference ofr Android PreferenceScreen
<p>I'm use Android ICS SDK and I would like to do a PreferenceScreen which use MultiSelectListPreference (avalaible for API Level 11&amp;+.</p>

<p>I just want to persist the value in SharedPref, refresh the summary of the MultiSelectListPreference and refresh the dialog list.</p>

<p>Here's my code :</p>

<pre><code>Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.newgame);
    mMultiCharacters.setOnPreferenceChangeListener(this);
}

@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {

    SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
    SharedPreferences.Editor settingsEditor = settings.edit();
    settingsEditor.putStringSet( preference.getKey() , (Set&lt;String&gt;) newValue);
    settingsEditor.commit();
    //display new summary
    initChar();
    return false;
}
</code></pre>

<p>XML part :</p>

<pre><code>    &lt;MultiSelectListPreference
        android:entries="@array/characterNames"
        android:entryValues="@array/characterNames"
        android:key="pref_characters"
        android:persistent="true"
        android:title="Chars :" /&gt;
</code></pre>

<p>The behavior is quite strange. The dialog list doesn't refresh… some ideas ? Thanks!</p>
