Don't forget to gift yourself this Cyber Monday 👀 Get a year of Courses for $150 (40% off!)

💥 ALL NEW: Code Adventures! ⚡ Dare to embark on a front end coding adventure 🌟

Dive into new course Game Development with Phaser 👾

New AI course: Introduction to Computer Vision 💻

Learn about our new Community Discord server here and join us on Discord here!

New workshop: Discover AI-powered VS Code extensions like GitHub Copilot and IntelliCode 🤖

New course! Join Dan as he uses generative AI to design a website for a bakery 🥖

Jump into our new React Basics course 😎

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

Learn about our new Community Discord server here and join us on Discord here!

🤖 Check out all our AI content here 👀

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Code Adventures
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • REINHARD CHEFU
    REINHARD CHEFU
    5,163 Points

    data persistence.

    Posted April 4, 2017 7:52am by REINHARD CHEFU
    REINHARD CHEFU
    5,163 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    1 Answer

  • MUZ140820 Immaculate Ncube
    MUZ140820 Immaculate Ncube
    4,611 Points

    Next, initialize the editor variable from mSharedPreferences.

    Posted July 20, 2015 12:17pm by MUZ140820 Immaculate Ncube
    MUZ140820 Immaculate Ncube
    4,611 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    1 Answer

  • MUZ140820 Immaculate Ncube
    MUZ140820 Immaculate Ncube
    4,611 Points

    Next, initialize the editor variable from mSharedPreferences.

    Posted June 23, 2015 12:52pm by MUZ140820 Immaculate Ncube
    MUZ140820 Immaculate Ncube
    4,611 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    2 Answers

  • MUZ140202 Oniel Chamburuka
    MUZ140202 Oniel Chamburuka
    5,250 Points

    stil giving an eerror

    Posted June 14, 2015 6:27pm by MUZ140202 Oniel Chamburuka
    MUZ140202 Oniel Chamburuka
    5,250 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    1 Answer

  • MUZ140202 Oniel Chamburuka
    MUZ140202 Oniel Chamburuka
    5,250 Points

    Now, put the int value 42 into SharedPreferences using the key "MeaningOfLife"

    Posted June 12, 2015 5:40pm by MUZ140202 Oniel Chamburuka
    MUZ140202 Oniel Chamburuka
    5,250 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    2 Answers

  • MUZ140566 Kundai Katambetambe@gmail.com
    MUZ140566 Kundai Katambetambe@gmail.com
    4,845 Points

    Now, put the int value 42 into SharedPreferences using the key "MeaningOfLife".

    Posted May 18, 2015 10:17am by MUZ140566 Kundai Katambetambe@gmail.com
    MUZ140566 Kundai Katambetambe@gmail.com
    4,845 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    1 Answer

  • Chad Johnson
    Chad Johnson
    10,936 Points

    Finally, save your changes with one of the appropriate methods!

    Posted April 2, 2015 8:16pm by Chad Johnson
    Chad Johnson
    10,936 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    1 Answer

  • Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points

    We have an amazing app that knows the Answer to the Ultimate Question of Life, the Universe, and Everything. We need to

    Posted March 24, 2015 3:40am by Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Storing a Value in SharedPreferences

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.