I am getting the following error when trying to create a shared preferences file from a service:
"Couldn't create directory for SharedPreferences file /dbdata/databases/dimappers.android.pub/shared_prefs/PubStore2.xml"
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...)
Editor editor = getSharedPreferences(Constants.SaveDataName, MODE_PRIVATE).edit();
editor.putString(Constants.SaveDataName, xmlString);
editor.commit();
If I call
String s = getSharedPreferences(Constants.SaveDataName, MODE_PRIVATE).getString(Constants.SaveDataName, "");
Immeditately after calling commit it is able to get it, but if I restart the app it isn't able to find it.