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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -