title: Android trying to use Preferences to save data
body: <p>I’m trying to learn how <code>Preferences</code> work by writing a short program to store <code>ted</code> in the key <code>board</code> and then load the value in <code>boardstr</code>.
  When I use <code>getString</code> to load the value, the value of <code>boardstr</code> does not change.</p>
  
  <pre><code>boardstr= new String();      
  boardstr="fred";
  // set the prefrence to ted
  this.getPreferences(MODE_PRIVATE).edit().putString("board","ted");
  // kload the prfrence in boardstr
  this.getPreferences(MODE_PRIVATE).getString("board",boardstr);
  // boardstr stil equals fred, not ted 
  </code></pre>