[android-developers] Re: Sporadic SharedPreferences reset

2009-01-26 Thread radiolistener
I've been struggling with these shared preferences. I want to save a resolution setting, so that people with different degrees of vision can see the screen. With a Diabetes application, this is a very important feature. What I've found thus far, however I cut the cake, I lose my settings with

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-26 Thread Christoph Studer
If you do not store values with special characters in your settings, it might be interesting to see some of your code in order to analyze why you're losing them. If we're only talking about the problem with special characters, you should be fine with Base64 encoding values that potentially lead

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-26 Thread radiolistener
My issue was simpler than that. I was trying to get any setting to read, write, save, then recall under any condition. What I was doing wrong was I didn't have the xml file set up right. It appears to work fine now. Thanks, it was from studying your code that I figured out what was wrong. So

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-25 Thread android_soft
I have noticed this behavior couple of times. But I have not been able to reproduce, also I do not have or any other special character, except some Double values encoded as Strings. Chander On Jan 25, 12:39 am, Christoph Studer chstu...@gmail.com wrote: Okay, so my current suspicion is that I

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-25 Thread Daniel
This has been a recurring problem with K-9: http://code.google.com/p/k9mail/issues/detail?id=143 and apparently the core Email as well: http://www.androidforums.com/showthread.php?p=16842 and possibly other apps, too:

[android-developers] Re: Sporadic SharedPreferences reset

2009-01-24 Thread Christoph Studer
Okay, so my current suspicion is that I got bitten by http://code.google.com/p/android/issues/detail?id=1707 I have one preference value containing and which are improperly encoded due to above bug. My guess is that the XML parser chokes on this value and the pref file is ignored. I think