I am having the same problem with my application Android Agenda widget. E/ApplicationContext(15707): Couldn't rename file /dbdata/databases/ com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml to backup file /dbdata/ databases/com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml.bak E/ApplicationContext(15707): Couldn't rename file /dbdata/databases/ com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml to backup file /dbdata/ databases/com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml.bak E/ApplicationContext(15707): Couldn't rename file /dbdata/databases/ com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml to backup file /dbdata/ databases/com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml.bak I/global ( 2469): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required. E/ApplicationContext(15707): Couldn't rename file /dbdata/databases/ com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml to backup file /dbdata/ databases/com.roflharrison.agenda/shared_prefs/ com.roflharrison.agenda_preferences.xml.bak
This rename operation isn't a part of my code. Perhaps Samsung are trying to cache the preferences and I have a private lock on the file (I cache my own preferences and use MODE_PRIVATE when setting preference file names etc)? I will try changing this to WORLD_READABLE and report back. On Jan 19, 5:2 pm, Lior <[email protected]> wrote: > Uninstalling and re-installing didn't help, so it's not the backup > file, which also abolishes Kosty'a suggestion. (Unless, of course, for > some reason the backup file is not being removed during the > uninstallation). > > I'll try to investigate in Mark's direction. If anyone has more ideas, > I'd be happy to get to the bottom of this. > In the meanwhile, thanks Mark and Kostya. > > On Jan 19, 5:15 pm, Mark Murphy <[email protected]> wrote: > > > > > > > > > On Wed, Jan 19, 2011 at 10:07 AM, Lior <[email protected]> wrote: > > > You are right about the path, and yes I do have a database to which > > > the carousels are being saved. > > > The paths of the files on my device are (as expected, obviously...): > > > ./data/data/com.mobilemerit.ultimatefaves/shared_prefs/ > > > com.mobilemerit.ultimatefaves_preferences.xml > > > ./data/data/com.mobilemerit.ultimatefaves/databases/ > > > UltimateFavesPro.db > > > > As far as I know the database access is ok. (I e-mailed the user to > > > confirm this, but without it the app would be totally useless for him, > > > and I don't think he would have bothered otherwise...) > > > > What can cause the situation you described? > > > Beats me. Other than the .bak file still being there (see Kostya's > > reply), it feels like your shared prefs are associated with the wrong > > Linux user account. > > > I'd have the user unininstall and reinstall to see if that helps, > > assuming you have some backup/restore mechanism for that database. > > > > On Jan 19, 4:50 pm, Mark Murphy <[email protected]> wrote: > > >> Well, that path is mighty strange -- /dbdata/databases is usually > > >> /data/data on Android. > > > >> That being said, it feels like somehow your application's preference > > >> files are owned by a different Linux user than the one that is used > > >> for running your process. Do you have databases or other files in your > > >> app, and do you have any idea if they are similarly affected? > > > >> On Wed, Jan 19, 2011 at 9:45 AM, Lior <[email protected]> wrote: > > >> > Hi, > > >> > I have an app called UltimateFavesPRO on the market (http:// > > >> > ultimatefaves.com/). > > > >> > The app is quite popular, very mature and stable. I have a user with a > > >> > problem I haven't been able to solve so far. > > > >> > The application uses SharedPreferences to keep the user's setting. For > > >> > this user, the SharedPreferences are never saved. I asked him to send > > >> > me the logcat from his device. The relevant lines are: > > > >> > 01-19 12:08:56.852 D/UltimateFavesHome( 4563): onCreate > > >> > 01-19 12:08:56.856 W/ApplicationContext( 4563): Attempt to read > > >> > preferences file /dbdata/databases/com.mobilemerit.ultimatefaves/ > > >> > shared_prefs/com.mobilemerit.ultimatefaves_preferences.xml without > > >> > permission > > >> > 01-19 12:08:56.856 E/ApplicationContext( 4563): Couldn't rename file / > > >> > dbdata/databases/com.mobilemerit.ultimatefaves/shared_prefs/ > > >> > com.mobilemerit.ultimatefaves_preferences.xml to backup file /dbdata/ > > >> > databases/com.mobilemerit.ultimatefaves/shared_prefs/ > > >> > com.mobilemerit.ultimatefaves_preferences.xml.bak > > > >> > The user has a T-Mobile Samsung Galaxy S running standard Froyo 2.2.1 > > >> > that he updated using the Samsung Kies Windows app - from the v2.1 it > > >> > shipped with. He performed a factory reset after the upgrade. > > >> > He has no similar issues with any other apps. > > > >> > Any suggestions? > > > >> > -- > > >> > 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 > > > >> -- > > >> Mark Murphy (a Commons > > >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > >> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > > >> Available! > > > > -- > > > 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 > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > > Available! -- 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

