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
  • zhenhuazhu
    zhenhuazhu
    2,417 Points

    The screen's orientation is not changing

    Posted December 27, 2018 7:05pm by zhenhuazhu
    zhenhuazhu
    2,417 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    2 Answers

  • Kevin Grifo
    Kevin Grifo
    9,824 Points

    The background color and text keeps on getting refreshed to the default values and not the saved values.

    Posted February 25, 2018 6:20pm by Kevin Grifo
    Kevin Grifo
    9,824 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Imran Asif
    Imran Asif
    7,514 Points

    App crash on screen rotation after copying properties set text and set colors in onRestoreInstance method

    Posted January 17, 2018 4:41am by Imran Asif
    Imran Asif
    7,514 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Franco Fadini
    Franco Fadini
    2,245 Points

    Retrieving RecyclerView state

    Posted July 11, 2017 7:26pm by Franco Fadini
    Franco Fadini
    2,245 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    0 Answers

  • Omar Carino
    Omar Carino
    11,162 Points

    Setting mFact to default

    Posted December 9, 2016 12:10am by Omar Carino
    Omar Carino
    11,162 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    0 Answers

  • Kyle Baker
    Kyle Baker
    8,211 Points

    How come we can call class and then fields?

    Posted October 14, 2016 12:21am by Kyle Baker
    Kyle Baker
    8,211 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    2 Answers

  • Placinta Alexandru
    Placinta Alexandru
    3,011 Points

    Where are these method called?

    Posted August 25, 2016 8:55am by Placinta Alexandru
    Placinta Alexandru
    3,011 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Royce Foo Wai Kit
    Royce Foo Wai Kit
    2,551 Points

    I keep getting bugs/errors relating to the save instance and restore instance.

    Posted August 18, 2016 7:17am by Royce Foo Wai Kit
    Royce Foo Wai Kit
    2,551 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    0 Answers

  • Jarvis Chandler
    Jarvis Chandler
    7,619 Points

    App seems to rest the color back to green and give me the Toast message "Yay! Our Activity was created!"

    Posted August 15, 2016 10:50pm by Jarvis Chandler
    Jarvis Chandler
    7,619 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Jvalant Dave
    Jvalant Dave
    4,483 Points

    Challenge 2 of 3 for the following question?

    Posted August 3, 2016 2:29am by Jvalant Dave
    Jvalant Dave
    4,483 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Donovan Matthysen
    Donovan Matthysen
    4,370 Points

    mFactLabel.setText - where does that come from? It wasn't in the "Build a simple android app class?

    Posted May 30, 2016 12:02pm by Donovan Matthysen
    Donovan Matthysen
    4,370 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    2 Answers

  • Aditya Prakarsa
    Aditya Prakarsa
    39,803 Points

    App immediately crash

    Posted May 1, 2016 4:58am by Aditya Prakarsa
    Aditya Prakarsa
    39,803 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    2 Answers

  • Andrew D.
    Andrew D.
    2,937 Points

    Challenge 3 of 3 - What is proper code to retrieve int and set text of TextView? Thanks guys!

    Posted March 25, 2016 6:41am by Andrew D.
    Andrew D.
    2,937 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    1 Answer

  • Esther Strom
    Esther Strom
    8,028 Points

    Downloaded code doesn't work...

    Posted February 7, 2016 6:16pm by Esther Strom
    Esther Strom
    8,028 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    2 Answers

  • Philip G
    Philip G
    14,601 Points

    Initializing variables in constructor

    Posted January 24, 2016 12:27pm by Philip G
    Philip G
    14,601 Points
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State

    0 Answers

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