title: How do I set MultiSelectListPreference's checkbox values programatically?
body: <p>I'am working on an android application, which gets summary of a preference from shared Preferences and now I have to set these values to this dialog 
  box of the MultiSelectListPreference.</p>
  
  <p>I am getting something like this (the summary is correct but the dialog values are not checked)</p>
  
  <p><a href="https://i.stack.imgur.com/T3hGL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T3hGL.png" alt="enter image description here"></a></p>
  
  <p>The code I used to bind the summary with value change(working fine):</p>
  
  <pre><code>        objects.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
              @Override
              public boolean onPreferenceChange(Preference preference, Object newValue) {
                  String values;
                  objects.setSummary(newValue.toString());
                  values = newValue.toString().replace("[", "");
                  values = values.replace("]", "");
                  editorObjects.putString(UserSharedPref.objectList, values);
  
                  editorObjects.commit();
                  return true;
               }
           });
  </code></pre>
  
  <p>The values and summary is binded in the above example.</p>
  
  <p>I'am initializing values from user shared prefs like this (working fine):</p>
  
  <blockquote>
    <p>objects.setSummary(["+UserSharedPref.initializeSharedPreferencesForObjectList(getApplicationContext()).getString(UserSharedPref.objectList,
    "person,bicycle,motorcycle,car,bus,truck") + "]");</p>
  </blockquote>
  
  <p>But, to check the values based on this summary is where I'am getting the problem.
  How should  my approach be?</p>