title: MultiSelectListPreference from code
body: <p>I would like to know how to use <strong>MultiSelectListPreference</strong> preference in code. </p>
  
  <p>The following code is taken from the API examples file PreferencesFromCode.java, if someone could give a similar example for MultiSelectListPreference you would make my day :)</p>
  
  <pre><code>// List preference
  ListPreference listPref = new ListPreference(this);
  listPref.setEntries(R.array.entries_list_preference);
  listPref.setEntryValues(R.array.entryvalues_list_preference);
  listPref.setDialogTitle(R.string.dialog_title_list_preference);
  listPref.setKey("list_preference");
  listPref.setTitle(R.string.title_list_preference);
  listPref.setSummary(R.string.summary_list_preference);
  dialogBasedPrefCat.addPreference(listPref);
  </code></pre>