I have exactly the same problem with my own developed app, on my own
standard non-rooted Samsung Galaxy S with android 2.2.1.

this is my error message, when I do the Editor.commit():


E/ApplicationContext(19228): Couldn't rename file /dbdata/databases/
klwinkel.huiswerk/shared_prefs/klwinkel.huiswerk_preferences.xml to
backup file /dbdata/databases/klwinkel.huiswerk/shared_prefs/
klwinkel.huiswerk_preferences.xml.bak


I did some investigation, with a "ps" and a "ls -l" on the xml prefs
file, with the following result:

ps:

USER PID PPID VSIZE RSS WCHAN PC NAME
app_17 19411 2366 223648 21104 ffffffff 00000000 S klwinkel.huiswerk


ls -l -->

-rw-rw---- app_107  app_107       292 2011-01-22 20:13
klwinkel.huiswerk_preferences.xml

So, this is the proof, that the uid of the prefs file(app_107) and the
uid of the app(app_17) are different.

The prefs file is from a few days ago, probably I was developing at
that time, maybe I removed the app from the phone, I don''t remember.

It possibly is a bug in the Samsung android 2.2.1, which does not
always delete prefs file when de-installing an app.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to