My code looks something like this: SharedPreferences myPrefs = getPreferences(MODE_PRIVATE); myPrefs.edit().putInt("Some_String",someInt); myPrefs.edit().commit();
Note that the key/value pair Some_String/someInt does not exist in preferences.xml and I presume the editor should create it. Perhaps that presumption is wrong and that's why the commit is failing? If so, how do I create a new key/value pair in the preferences, one that is not visible to the user? Do I need to create a separate preferences file for that purpose or will the default one support that? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en