Your First Kotlin Android App
Updated for 2020! Learn the basics of Android development by creating your own game. This course is designed for people new to both Android and development as a whole. By Filip Babić & Roel Bondoc.
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
You'll learn to:
- Install all the prerequisite software necessary for developing Android apps.
- Create a brand new Android app using Android Studio.
- Add and modify View components.
- Apply and modify logic and rules to the app.
- Debug and troubleshoot issues.
- Package and release an app to the Google Play Store.
Part 1: Getting Started
Getting started with Android development begins right here. Learn about what you'll be making in this course.
To get started with Android development, you'll need to download Android Studio. This episode will walk you through installing it.
With Android Studio installed and you registered as an Android developer, you'll get started by creating your first project.
This episode will show the process of building your app and running it on a virtual device.
In this episode, learn the process of setting up a physical device to run your app on.
Learn about the various components that make up an Android project.
Before starting out on any programming task, it's good to have a roadmap. Your challenge is to create one.
You've made it through the first part of the course! Review what you've learned and get a glimpse of what you'll do next.
Part 2: The Basics
A good place to start with your game is in the user interface. This introduction will give you a brief glimpse at what you'll be doing.
In this episode, you'll start out building your UI by adding a TextView.
In your first challenge, you'll add another TextView to your game.
Placing items isn't enough. You also have to position them. You'll do this by learning about constraints.
Now you know how to add rules, you'll add some rules of your own to the Tap Me button.
Once you have a UI element place, you'll want to customize it. This video will show you how.
To access UI elements, you'll need to add an ID. That's what you'll tackle in your challenge!
You should avoid adding text directly and instead use string resources. In this episode, you'll learn what that means.
Now that you know how to work with string resources, it's time for you to add one of your own.
This episode concludes the discussion about creating your UI and prepares you for your next task: writing Kotlin.
Part 3: Activities
This section introduces a critical component in Android development: Activities.
In this episode, you'll take a deep dive into the purpose of Activities, and be introduced to your first Kotlin code.
Every app comes with a manifest file and in this episode, you'll learn why it's important.
Learn about properties and how to add them to an activity.
In your challenge, you'll add another property to your main activity.
Object Oriented Programming is the basis of Kotlin. This episode provides a brief overview of the basis of OOP.
If you want to react to events, you need to write some actions. This episode will show you how.
In your challenge, you'll need to update the score TextView to display 0.
For your game to work, it requires a countdown timer. Learn what it is and how to use it.
Every game must have a beginning and ending. In this episode, you'll add both.
At this point, you have a working game! ... Or do you?
Part 4: Debugging
Bugs are a part of software development, and in this section of the course, you'll learn how to get rid of them.
To get started with debugging, you'll be introduced to a common debugging technique: logging.
This episode covers the activity lifecycle and what actually happens to an activity when a device is rotated.
Now that you have log statements in your code, your challenge is to trigger all of them.
While logging can help debug your app, breakpoints is where you can inspect your app while it is running.
When you save the state of your app, you'll want to - at some point - restore it. This video will cover the process.
With your app all debugged, all you need to do is make it look good and submit it to the app store.
Part 5: Making It Look Good
With your app working well, you have just a few things left to do before publishing it to the Android app store.
While the default colors are fine, to make your app really shine, you'll learn how to define your own.
In this challenge, you'll define some new custom colors and apply them to existing controls.
In this episode, you'll add some animations to your interface to make it really shine.
In your challenge, you'll add an animation to the score.
Menus provide a way to add additional interactivity. In this video, you'll add one to your game.
In this episode, you'll learn about Dialogs and how to use them in your game.
You're almost there! Learn how to give your app a custom icon and a display name.
With Android Studio up and running, you'll need to register as a Google developer. This episode shows you the steps.
With your game completed, there's only one thing to do: submit it to the app store!
With your app completed, you've made it through the course. Great work!