🤑 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
  • 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.

    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.