On Thu, Mar 18, 2010 at 7:59 AM, Pete <petesla...@gmail.com> wrote: > This has > been working fine for a long time and has only had problems when > introducing another preference screen that is backed by a subclass of > PreferenceActivity. >
Be aware that the SharedPreferences object that you get from getSharedPreferences() for a given name is NOT the same as the SharedPreferences object used by PreferenceActivity. I found this out the hard way. So if you were to check in PreferenceActivity for the existence of a setting that was set elsewhere, it is expected that it would not be there. If you want all of your settings in one place (as I did) use PreferenceManager.getDefaultSharedPreferences(context), as this is what's used by default by the PreferenceManagerActivity. Hope that helps. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en