This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SharedPreferenceEditor  RSS feed

 
Mark Do
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Which part of the code actually enables me to update information from the sharedpreferences? Is it just this one?


How about the fragment that allows me to retrieve the information that I previously stored from the sharedpreference? I would really appreciate it if someone can explain it to me.

Thanks,
Mark
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the SharedPreferences API: http://developer.android.com/reference/android/content/SharedPreferences.html
And the information on its usage guide: http://developer.android.com/guide/topics/data/data-storage.html#pref
 
You showed up just in time for the waffles! And this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!