Your First Kotlin Android App: An App From Scratch
Updated for 2022! Get started with Android by building your own game using the Kotlin programming language. If you’re new to Android and development as a whole, then this course is for you. By Emmanuel Okiche.
Who is this for?
Total beginners welcome! This course walks you through building an Android app in Kotlin from start to finish.
This course isn’t suited for advanced developers. If that’s you, check out our intermediate or advanced video courses for more ways to level-up your developer skills!
Covered concepts
- Install all the prerequisite software necessary for developing Android apps
- Create a brand new Android app using Android Studio
- Build Layouts using ConstraintLayout
- Modify View components
- Understand the basics of Kotlin Programming Language
- Apply and modify logic and rules to the app
Part 1: Get Started with Android Development
Getting started with Android development begins right here. Learn about what you’ll be making in this course - a simple game called Bull’s Eye.
This episode would introduce the students into the two main components of the course: Kotlin and Android. Get a general introduction to Kotlin and a brief overview of the Android OS.
Challenge yourself to come up with the steps required to build the Bull’s Eye app.
Download Android Studio and setup a simple project.
Build and run the app on the virtual device you just created to see the starter app in action.
Build the basic inteface of the Bull’s Eye app using Views in Android.
Continue building the game screen and learn about working with xml in the code view of the layout designer.
Learn about the importance of using string resources for texts and how to add descriptive ids to views.
Add a button, position it and add other attributes with what you’ve learned so far.
Get a summary of what has been covered so far and what to expect in the next part.
Part 2: Work with an Android Activity
Get an overview of what we’ll be covering in this part and why it’s important.
Learn to access and interact with the views created in xml from inside your activity using the view binding feature.
Get introduced to some basic object-oriented programming concepts to better understand the Kotlin code you’ll be working with in the Android Activity.
Now it’s time to try to access other views from the Activity with the knowledge you’ve gained so far.
Handle events triggered when users interact with your app. An Alert Dialog will display when the “Hit me” button is clicked.
Cover the process of working with the “string” data type which stores a sequence of characters and display the value of the seekbar in the Alert Dialog.
Learn about common problems you might encounter while building your apps and see how to solve them.
Get a summary of what has been covered so far and what to expect in the next part.
Part 3: Coding in Kotlin
Get an overview of what we’ll be covering in this part and why it’s important.
Get introduced to the Kotlin Standard Library and how it assists with common operations so we don’t have to reinvent the wheel.
Learn about another type of function: one that returns some data.
Learn about algorithms and write one that calculates the positive difference between the player’s selection and the target value.
Become acquainted with conditional statements by calculating the positive difference.
Learn the ropes of code refactoring. Try to rewrite the method using another algorithm with less code.
Learn to use a math function provided by the Kotlin Standard Library to further simplify the code to calculate the difference.
Get a refresher of what was covered in this course and what to expect in the next course in your Android development journey.