title: SharedPreferences not persistent
body: <p>I am using a <strong>SharedPreferences</strong> in Android.Everything works great in the same session.  </p>
  
  <p>However once I relaunch the application, all of the preferences that were set from the previous <strong>session</strong> are lost.</p>
  
  <p>Is there anything I need to specify to tell the <strong>SharedPreferences</strong> to hang around from run to run?</p>
  
  <p>I am creating the preferences by calling</p>
  
  <pre><code>SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
  </code></pre>
  
  <p>Then I set properties by e.g.</p>
  
  <pre><code>preferences.edit().putString(key, value);
  </code></pre>
  
  <p>and I get it by </p>
  
  <pre><code>preferences.getString(key, defaultValue);
  </code></pre>
  
  <p>Thanks, 
  Victor</p>