🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Jun Kakeno
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jun Kakeno
    iOS Development with Swift Techdegree Graduate 24,842 Points

    Where in the video explains how to add StorageType button to the Settings screen

    Posted July 5, 2017 6:19pm by Jun Kakeno
    .a{fill-rule:evenodd;}techdegree seal-36
    Jun Kakeno
    iOS Development with Swift Techdegree Graduate 24,842 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding the Settings Page

    0 Answers

  • 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

  • dlpuxdzztg
    dlpuxdzztg
    8,243 Points

    Does the Fragment Have to Extend 'PreferenceFragment'?

    Posted March 20, 2017 7:05pm by dlpuxdzztg
    dlpuxdzztg
    8,243 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding the Settings Page

    1 Answer

  • Rifqi Fahmi
    Rifqi Fahmi
    23,164 Points

    How to Store ArrayList of custom object in sharedPreferences ?

    Posted August 3, 2016 2:26pm by Rifqi Fahmi
    Rifqi Fahmi
    23,164 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding a Storage Preference

    0 Answers

  • Adhyan Srivastava
    Adhyan Srivastava
    5,681 Points

    Why we are not using the method setSahredPreference to set the storage?

    Posted August 9, 2015 5:24pm by Adhyan Srivastava
    Adhyan Srivastava
    5,681 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding the Settings Page

    0 Answers

  • 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

  • Adlight Sibanda
    Adlight Sibanda
    5,701 Points

    Were is the Bug.......

    Posted May 28, 2015 4:07pm by Adlight Sibanda
    Adlight Sibanda
    5,701 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Troubleshooting 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

  • Dalton Coble
    Dalton Coble
    6,489 Points

    My app wont run do to the MemeDataSource java file.

    Posted April 24, 2015 2:19am by Dalton Coble
    Dalton Coble
    6,489 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding a Storage Preference

    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

    Ack! There is an error regarding SharedPreferences in the code below. Fix it such that "MeaningOfLife" is properly store

    Posted March 24, 2015 9:50pm by Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Troubleshooting SharedPreferences

    3 Answers

  • Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points

    A superior alien race will spare Planet Earth if we can provide the Answer to the Ultimate Question of Life, the Univers

    Posted March 24, 2015 4:41am by Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Reading a Value from SharedPreferences

    3 Answers

  • 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

  • Evan Dix
    Evan Dix
    1,641 Points

    Will my saved shared prefs be there even after the app is closed?

    Posted March 10, 2015 12:23am by Evan Dix
    Evan Dix
    1,641 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding a Storage Preference

    1 Answer

  • Shubham Agrawal
    Shubham Agrawal
    7,169 Points

    What should be "int" parameter in getInt() method?

    Posted January 10, 2015 8:16pm by Shubham Agrawal
    Shubham Agrawal
    7,169 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Reading a Value from SharedPreferences

    1 Answer

  • Dalton Coble
    Dalton Coble
    6,489 Points

    I could use some help on troubleshooting sharedpreferences code challenge. I am not sure were the error is. Please help?

    Posted December 9, 2014 11:45pm by Dalton Coble
    Dalton Coble
    6,489 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Troubleshooting SharedPreferences

    3 Answers

  • Dalton Coble
    Dalton Coble
    6,489 Points

    Reading a value from SharedPreferences Code Challenge help. I really tried hard and I can not seem to get it, help?

    Posted December 9, 2014 12:51am by Dalton Coble
    Dalton Coble
    6,489 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Reading a Value from SharedPreferences

    1 Answer

  • Irmak Topkaya
    Irmak Topkaya
    1,072 Points

    content-assist issue on Mac

    Posted November 12, 2014 11:03pm by Irmak Topkaya
    Irmak Topkaya
    1,072 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Creating a Settings Page

    2 Answers

  • Raghda Talaa't
    Raghda Talaa't
    2,944 Points

    Why choosing the Storage Type from the settings icon is not working?

    Posted November 4, 2014 9:12pm by Raghda Talaa't
    Raghda Talaa't
    2,944 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Adding the Settings Page

    2 Answers

  • kylan hill
    kylan hill
    3,125 Points

    MeaningOfLife answer

    Posted October 28, 2014 10:47pm by kylan hill
    kylan hill
    3,125 Points
    • Android
    • Android Data Persistence
    • Key-Value Saving with SharedPreferences
    • Introduction to SharedPreferences

    3 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
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.