java - Error creating SharedPreferences - couldn't create directory for SharedPreferences file -
i getting following error when trying create shared preferences file service:
"couldn't create directory sharedpreferences file /dbdata/databases/dimappers.android.pub/shared_prefs/pubstore2.xml"
i using samsung galaxy s i9000 test , have read else problems specific phone. however, swear working @ point in normal activity (though admittedly can't work more...)
editor editor = getsharedpreferences(constants.savedataname, mode_private).edit(); editor.putstring(constants.savedataname, xmlstring); editor.commit();
if call
string s = getsharedpreferences(constants.savedataname, mode_private).getstring(constants.savedataname, "");
immeditately after calling commit able it, if restart app isn't able find it.
it appeared phone (samsung galaxy s i9000), worked (albeit still showing error) running same code on phone didn't show error message.
Comments
Post a Comment