title: Multiselectlistpreference android retrieving values
body: <p>im trying to retrieve the values but somehow i get alot more values back.
  this is the code im running. Anyone knows what im doing wrong? i did search at alot of places but most is outdated. ( i checked item 2 and 3)
  Just to make sure i only want to read out the selected checkboxes of the list but i have no idea where the 0-1-2-123 come from.</p>
  
  <p><strong>pref_app.xml</strong></p>
  
  <pre><code>    &lt;MultiSelectListPreference
          android:title="Categories"
          android:key="rssfeeds"
          android:summary="List to choose from"
          android:entries="@array/catos"
          android:entryValues="@array/catovalues"
          android:defaultValue="@array/catodefault"
          android:dialogTitle="Categories"
          &gt;
      &lt;/MultiSelectListPreference&gt;
  </code></pre>
  
  <p><strong>Strings.xml</strong></p>
  
  <pre><code>&lt;string-array name="catos"&gt;
      &lt;item &gt;Movies&lt;/item&gt;
      &lt;item &gt;Test&lt;/item&gt;
      &lt;item &gt;TEst23&lt;/item&gt;
  &lt;/string-array&gt;
  &lt;string-array name="catovalues"&gt;
      &lt;item &gt;movies-checked&lt;/item&gt;
      &lt;item &gt;test-checked&lt;/item&gt;
      &lt;item &gt;test23-checked&lt;/item&gt;
  &lt;/string-array&gt;
      &lt;string-array name="catodefault"&gt;
      &lt;item &gt;movies-default&lt;/item&gt;
      &lt;item &gt;test-default&lt;/item&gt;
      &lt;item &gt;TEST23-default&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p><strong>return code in main xml</strong></p>
  
  <pre><code>        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
          Set&lt;String&gt; selections = preferences.getStringSet("rssfeeds", null);
          String[] selected= selections.toArray(new String[] {});
          for (int i = 0; i &lt; selected.length ; i++){
              System.out.println("\ntest" + i +" : " + selected[i]);
          }
  </code></pre>
  
  <p><strong>Logcat result:</strong></p>
  
  <pre><code>01-15 14:15:49.016: I/System.out(4555): test0 : test23-checked
  01-15 14:15:49.016: I/System.out(4555): test1 : 2
  01-15 14:15:49.016: I/System.out(4555): test2 : 1
  01-15 14:15:49.016: I/System.out(4555): test3 : 0
  01-15 14:15:49.016: I/System.out(4555): test4 : 123
  01-15 14:15:49.016: I/System.out(4555): test5 : test-checked
  </code></pre>