This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In this video we'll see how we can retrieve the instance state of our activity using a bundle and the onRestoreInstanceState method. We'll then use the retrieved instance state to update our UI.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
zhenhuazhu
2,417 Points2 Answers
-
Kevin Grifo
9,824 PointsThe background color and text keeps on getting refreshed to the default values and not the saved values.
Posted by Kevin GrifoKevin Grifo
9,824 Points1 Answer
-
Imran Asif
7,514 PointsApp crash on screen rotation after copying properties set text and set colors in onRestoreInstance method
Posted by Imran AsifImran Asif
7,514 Points1 Answer
-
Franco Fadini
2,245 Points0 Answers
-
Omar Carino
11,162 Points0 Answers
-
Kyle Baker
8,211 Points2 Answers
-
Placinta Alexandru
3,011 Points1 Answer
-
Royce Foo Wai Kit
2,551 Points0 Answers
-
Jarvis Chandler
7,619 Points1 Answer
-
Jvalant Dave
4,483 Points1 Answer
-
Donovan Matthysen
4,370 Points2 Answers
-
Aditya Prakarsa
39,803 Points2 Answers
-
Andrew D.
2,937 PointsChallenge 3 of 3 - What is proper code to retrieve int and set text of TextView? Thanks guys!
Posted by Andrew D.Andrew D.
2,937 Points1 Answer
-
Esther Strom
8,028 Points2 Answers
-
Philip G
14,601 Points0 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up