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 covered a bit of the generated code, it's time to write our own! In this video we'll write Kotlin code in our FunFactsActivity class to declare our TextView and Button.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
tirupathi rao
381 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