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
- Accessing Views in Code: Declaring Variables 5:41
- Accessing Views in Code: Assigning Variables 6:35
- Initializing a Button 1 objective
- Making a Button Do Something 3:56
- Android Programming Basics 5 questions
- Generating a Random Number 4:01
- Choosing a Random Fact 4:41
- Using the Random Class 1 objective
Well done!
You have completed Build a Simple Android App with Kotlin!

- 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
Now that we've declared our variables, it's time to start using them! In this video we'll see how we can assign these variables to the corresponded Views from our layout.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PEARL KENGAJU
424 Points1 Answer
-
Brock Hamm
182 Points1 Answer
-
Erik Garwick
192 Points0 Answers
-
Stephanie Piper
810 Points1 Answer
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