Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • Hamish kundai Chipunza
    Hamish kundai Chipunza
    4,218 Points

    Let's practice saving and retrieving instance state. Start by initializing a key named KEY_USERENTRY

    Posted September 30, 2019 1:56pm by Hamish kundai Chipunza
    Hamish kundai Chipunza
    4,218 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Prosper moyo
    Prosper moyo
    1,876 Points

    am sure i have done everything right can anyone please help identify my error coz i cant pass this challenge

    Posted August 24, 2019 11:32am by Prosper moyo
    Prosper moyo
    1,876 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Tafadzwa Nyazorwe
    Tafadzwa Nyazorwe
    17,053 Points

    Let's practice saving and retrieving instance state. Start by initializing a key named KEY_USERENTRY.

    Posted March 5, 2019 10:56pm by Tafadzwa Nyazorwe
    Tafadzwa Nyazorwe
    17,053 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • tinashe ibu
    tinashe ibu
    5,881 Points

    android question on initializing a key name

    Posted February 27, 2019 2:22pm by tinashe ibu
    tinashe ibu
    5,881 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • michael lee
    michael lee
    5,179 Points

    challenge 3 0f 3

    Posted January 22, 2019 4:07am by michael lee
    michael lee
    5,179 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Ali Imran
    Ali Imran
    4,311 Points

    I'm stuck

    Posted December 16, 2018 5:04am by Ali Imran
    Ali Imran
    4,311 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • samuel owino
    samuel owino
    440 Points

    method bundle.putString not found an error

    Posted November 15, 2018 7:11am by samuel owino
    samuel owino
    440 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • mustafa ibrahim
    mustafa ibrahim
    3,787 Points

    I can not understand this task......what should I do??

    Posted September 9, 2018 5:03pm by mustafa ibrahim
    mustafa ibrahim
    3,787 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    0 Answers

  • Samme Qandil
    Samme Qandil
    1,228 Points

    I am just confused about this challenge, storing the number 10 to the bundle

    Posted July 22, 2018 10:44am by Samme Qandil
    Samme Qandil
    1,228 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    0 Answers

  • Voltaire Lopez
    Voltaire Lopez
    5,249 Points

    Restore instance State Android

    Posted July 22, 2018 8:08am by Voltaire Lopez
    Voltaire Lopez
    5,249 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    0 Answers

  • Joe Jane
    Joe Jane
    175 Points

    don't get it

    Posted May 26, 2018 10:30am by Joe Jane
    Joe Jane
    175 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Alicia Beltran
    Alicia Beltran
    1,203 Points

    ./MainActivity.java:22: error: cannot find symbol

    Posted April 22, 2018 3:40pm by Alicia Beltran
    Alicia Beltran
    1,203 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Emily Conroyd
    Emily Conroyd
    6,512 Points

    Alternative Solution storing variable as string instead of int

    Posted March 17, 2017 11:02pm by Emily Conroyd
    Emily Conroyd
    6,512 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    Android activity lifecycle TextView. I cannot see which text or string needs to be restored.

    Posted March 17, 2017 10:13am by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Joyce Chidiadi
    Joyce Chidiadi
    1,867 Points

    Problem with the OnRestoreState Method

    Posted February 16, 2017 4:47am by Joyce Chidiadi
    Joyce Chidiadi
    1,867 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • Daniel Maia
    Daniel Maia
    6,228 Points

    onRestoreInstanceState retrieving a int and setting the TextView

    Posted March 21, 2016 8:23pm by Daniel Maia
    Daniel Maia
    6,228 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • Quiet Light Communications
    Quiet Light Communications
    6,410 Points

    outState.putString

    Posted February 24, 2016 8:59pm by Quiet Light Communications
    Quiet Light Communications
    6,410 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Aditya Naiyyar
    Aditya Naiyyar
    363 Points

    how to save number 10 in saved instance state

    Posted January 24, 2016 7:12pm by Aditya Naiyyar
    Aditya Naiyyar
    363 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • Andrés Vila
    PLUS
    Andrés Vila
    Courses Plus Student 2,219 Points

    When I put this line at the second question is shows an error. outState.putString(KEY_USERENTRY, "10");

    Posted January 22, 2016 6:09am by Andrés Vila
    Andrés Vila
    Courses Plus Student 2,219 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Ravi M
    PLUS
    Ravi M
    Courses Plus Student 777 Points

    Retrieve and Restore the value in TextView

    Posted January 7, 2016 4:35am by Ravi M
    Ravi M
    Courses Plus Student 777 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Bryan Wiedeman
    Bryan Wiedeman
    10,203 Points

    can't retrieve the data I saved in a my bundle

    Posted December 1, 2015 1:24am by Bryan Wiedeman
    Bryan Wiedeman
    10,203 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Prashant chaudhari
    PLUS
    Prashant chaudhari
    Courses Plus Student 24,499 Points

    Let's practice saving and retrieving instance state. Start by initializing a key named KEY_USERENTRY.

    Posted November 27, 2015 8:03am by Prashant chaudhari
    Prashant chaudhari
    Courses Plus Student 24,499 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • Nanda G K Kalavai
    Nanda G K Kalavai
    1,093 Points

    The saved value in the bundle is integer. How to display it in text view. Integer.toString?

    Posted November 21, 2015 6:41am by Nanda G K Kalavai
    Nanda G K Kalavai
    1,093 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    0 Answers

  • House Trigo
    House Trigo
    36,620 Points

    Saving and Retrieving Instance State (3/3)

    Posted November 11, 2015 1:41am by House Trigo
    House Trigo
    36,620 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    3 Answers

  • Yuri Arons
    Yuri Arons
    7,281 Points

    HELP !~ can't get the last parameter

    Posted November 6, 2015 4:21pm by Yuri Arons
    Yuri Arons
    7,281 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • Sanchit Tripathi
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sanchit Tripathi
    Python Web Development Techdegree Student 2,665 Points

    In the onInstanceState method, save number 10 to bundle

    Posted November 5, 2015 10:08am by Sanchit Tripathi
    .a{fill-rule:evenodd;}techdegree
    Sanchit Tripathi
    Python Web Development Techdegree Student 2,665 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

  • John Weland
    John Weland
    42,478 Points

    Android Activity Lifecycle: code challenge 3 of 3

    Posted November 4, 2015 8:38pm by John Weland
    John Weland
    42,478 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    2 Answers

  • John Weland
    John Weland
    42,478 Points

    Android Activity Lifecycle: code challenge 2 of 3

    Posted November 4, 2015 8:07pm by John Weland
    John Weland
    42,478 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Saving and Retrieving Instance State

    1 Answer

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord