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

🤑 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

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

  • 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
    • Showing results for:
    • Android
    • Android Activity Lifecycle
    • The Activity Lifecycle
    • Retrieving Instance State
    • Close
  • zhenhuazhu
    zhenhuazhu
    2,417 Points

    The screen's orientation is not changing

    Posted on Dec 27, 2018 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 on Feb 25, 2018 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 on Jan 17, 2018 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 on Jul 11, 2017 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 on Dec 9, 2016 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 on Oct 14, 2016 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 on Aug 25, 2016 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 on Aug 18, 2016 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 on Aug 15, 2016 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 on Aug 3, 2016 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 on May 30, 2016 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 on May 1, 2016 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 on Mar 25, 2016 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 on Feb 7, 2016 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 on Jan 24, 2016 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.