title: Error creating SharedPreferences - couldn't create directory for SharedPreferences file
body: <p>I am getting the following error when trying to create a shared preferences file from a service:</p>
  
  <p>"Couldn't create directory for SharedPreferences file /dbdata/databases/dimappers.android.pub/shared_prefs/PubStore2.xml"</p>
  
  <p>I am using a Samsung Galaxy S I9000 to test and I have read else where about problems with this specific phone. However, I swear it was working at some point in a normal activity (though admittedly can't get it to work any more...)</p>
  
  <pre><code>Editor editor = getSharedPreferences(Constants.SaveDataName, MODE_PRIVATE).edit();
  editor.putString(Constants.SaveDataName, xmlString);
  editor.commit();
  </code></pre>
  
  <p>If I call</p>
  
  <pre><code>String s = getSharedPreferences(Constants.SaveDataName, MODE_PRIVATE).getString(Constants.SaveDataName, "");
  </code></pre>
  
  <p>Immeditately after calling commit it is able to get it, but if I restart the app it isn't able to find it. </p>