sharedpreferences
How do you save/store objects in SharedPreferences on Android?
I need to get user objects in many places, which contain many fields. Afte开发者_C百科r login, I want to save/store these user objects. How can we implement this kind of scenario?[详细]
2023-03-29 23:37 分类:问答FC when adding another EditTextPreference
I have a working XML preferences, but when i add it another EditTextPreference the preference activity keeps FCing:[详细]
2023-03-28 23:34 分类:问答SharedPreference problem in android
public class WordDisplay extends Activity { private int level; private int group; private int set; private WordDisplay mContext=this;[详细]
2023-03-28 16:44 分类:问答Determining how much time has passed since the app was last used in android?
I want to display a msg to the user like \"You have been not using this app since 开发者_StackOverflow社区XXX days\". How exactly can i do that in android? can we store the time info in shared prefere[详细]
2023-03-28 11:43 分类:问答Android SharedPreferences crashing when storing a string with a quotation mark
I am having some trouble with shared preferences. I am attempting to save the text of a search box (an edit text) before an orientation change, and then reinstate it after the activity is recreated fo[详细]
2023-03-28 07:35 分类:问答Clearing Shared Preferences throws a Null Pointer Exception
I am getting a null pointer exception every time the user selects \"logout\" (R.Id.logout) from the option menu.I can\'t figure out what I\'m not initialising.[详细]
2023-03-28 04:29 分类:问答Any examples for "onDialogClosed"?
Can anyone give me an example or explain me how i subscribe to the onDialogClosed method of an EditTextPreference?[详细]
2023-03-28 01:59 分类:问答EditTextPreference not set
I want to set开发者_如何转开发 an EditTextPreference every launch of the activity. For that i writed some code to set it but nothing happens:[详细]
2023-03-27 15:44 分类:问答Android preferences: saving in Activity or PreferenceActivity
I have an Activity which when clicking the menu and a button appearing there, goes to a PreferenceActivity, and then loads three ListPreferences.[详细]
2023-03-27 08:00 分类:问答Shared Preferences android basic question
I save a user\'s username and passwords the first time he opens the app and store it in a SharedPreferences object. I check for the data the second time he enters and if its not null, then I got into[详细]
2023-03-27 03:44 分类:问答