title: Android PreferenceManager in staticmethod
body: <p>If I try to write this method </p>
  
  <pre><code>public static void saveDefaultUser() {
          Editor pName = PreferenceManager
                  .getDefaultSharedPreferences(getBaseContext())
                  .edit();
          pName.putString("Name", name);
          pName.commit();
  }
  </code></pre>
  
  <p>doesn't compile and I have to remove the <strong><em>static</em></strong> value, 
  because clearly I cannot make a static reference to the non static method.</p>
  
  <p>Is there is a way to adapt this for the use in static method?</p>