title: Get all selected entries from MultiSelectListPreference(SharedPreferences)
body: <p>I want to use MultiSelectListPreference to create an array of items and to search for them in an xml.</p>
  
  <p>I created the MultiSelectListPreference in XML (res/xml/preferences.xml)</p>
  
  <pre><code>&lt;MultiSelectListPreference
              android:dialogTitle="@string/coursesTitle"
              android:key="searchedCourses"
              android:summary=""        
              android:title="@string/coursesTitle"
              android:entries="@array/courses"
              android:entryValues="@array/courses"
              android:defaultValue="@array/empty_array"
              android:dependency="own_courses"
             /&gt;
  </code></pre>
  
  <p>I created a Preference Fragment and a Preference Activity. I already can chose the items i want to search for.</p>
  
  <p>Now I want to read out the selected items. </p>
  
  <p>I tried with</p>
  
  <pre><code>SharedPreferences sharedPref =   PreferenceManager.getDefaultSharedPreferences(this);
   String rawval = sharedPref.getString("searchedCourses", "NA");
   String[] selected = this(context, null).parseStoredValue(rawval);
  
   Toast.makeText(context, selected[0], Toast.LENGTH_LONG).show();
  </code></pre>
  
  <p>and similar 'solutions' I found online, but it does not work.</p>