sharedpreferences
how to save data using shared preferences?
i am new developer in android application.i have used shared preference concept to share the data from one activity to another activity.i have implemented code as follows[详细]
2023-03-05 23:59 分类:问答Android: adding and removing a SharedPreference
I\'m having a bit of an issue comparing key strings in an OnSharedPreferenceChanged method and hoped you might be able to take a look at it - basically the problem is that even when i know and can con[详细]
2023-03-05 16:52 分类:问答save the data using shared preference in android
i am new developer in android applications.i would like to save the data using shared preference concept.i am saving the data in one activity and get the same data in another activity.here i would lik[详细]
2023-03-05 12:36 分类:问答NullPointerException in SharedPreferences Android
My first time using sharedPreferences and i can\'t seem to get past this error. I have a submenu that is supposed to allow the user to set their region. This should open the correct region activity an[详细]
2023-03-05 10:49 分类:问答Can't use SharedPreferences in method that doesn't get called in onCreate()?
In my app, I\'m trying to save an ArrayList of Strings. I have an Activity Favourites, which has an add() method. This method开发者_开发技巧 is called in another Activity to add something to the Array[详细]
2023-03-05 02:54 分类:问答how can using shared preferences string values in surface view class in Android
i am implementing one game application in this application i am using shared preferences in preferences Activity[详细]
2023-03-05 02:54 分类:问答Can Shared Preferences be private?
From the name alone, I am guessing that Shared Preferences are... shared among apps? That is, even if my app defines and creates them, any app on android can access them. Is this correct?[详细]
2023-03-04 21:37 分类:问答User settings saved in SharedPreferences removed or lost between reloads of app
My app stores simple settings in SharedPreferences it works fine. However for one person w开发者_高级运维ho\'s downloaded my app is having problems.[详细]
2023-03-04 18:51 分类:问答Difference between getDefaultSharedPreferences and getSharedPreferences
What is the difference between getDefaultSharedPreferences and get开发者_C百科SharedPreferences in Android? Can anyone please explain?getDefaultSharedPreferences will use a default name like \"com.exa[详细]
2023-03-04 15:15 分类:问答What's the difference between commit() and apply() in SharedPreferences
I am using SharedPreferences in my android app. I am using both commit() and apply() method from shared preference. When I use AVD 2.3 it shows no error, but when I run the code in AVD 2.1, apply()开发[详细]
2023-03-04 05:21 分类:问答