title: Android SharedPreferences.Editor putStringSet method not available
body: <p>I am trying to update a password generator I made to include the ability to save passwords, so I'm using SharedPreferences. I want to put the saved passwords inside a Set, but when I try to save the set using SharedPreferences.Editor's putStringSet method, Eclipse does not recognize it. When I hover over putStringSet in my code, the 2 quick fixes available are "Change to putString(...)" and "add cast to editor", but I don't think either of those helps.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>public void save(View v)
  {
      SharedPreferences prefs = getPreferences(MODE_PRIVATE);
      final SharedPreferences.Editor editor = prefs.edit();
      savedPasswords = (Set&lt;String&gt;) getSharedPreferences("savedPasswordsList", 0);
      AlertDialog.Builder dialog = new AlertDialog.Builder(this);
      dialog.setItems(passwords, new DialogInterface.OnClickListener(){
          public void onClick(DialogInterface face, int num)
          {
              savedPasswords.add(passwords[num]);
              editor.putStringSet("savedPasswordsList", savedPasswords);
              editor.commit();
              refreshSavedPasswordsList();
          }
      });
      dialog.show();
  }
  </code></pre>