Josh Skeen

Converting a Java Android Project to Kotlin

Josh Skeen | Nov 09, 2017

How do you convert a Java Android Project to Kotlin?

Google announced official support for the Kotlin Programming language at google io 2017. In this video we will learn how to migrate our existing Java Android projects to the Kotlin language by using the automated Kotlin Conversion tools. In the process, we will also learn Kotlin language fundamentals, including the null safety features of the language, safe call operator, and how statics are represented in Kotlin.

For the More Curious...

BNR Guide to Kotlin
Android & Kotlin Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Getting Started with Kotlin

This screencast is part of a skill pack called Getting Started with Kotlin.

Kotlin Class Extensions

8 minutes

Class extensions are a powerful feature of Kotlin that allow you to add behavior to classes without extending them. In this video we will take a look at how to work with class extensions, some of the subtleties of how class extensions work with custom objects, and how to define your own class extensions to simplify your code.

SAM Type Conversion in Kotlin

7 minutes

In this screencast, we will do a recap on SAM Types, see how they work in Kotlin to support Java interoperability, and we'll also see some of the "gotchas" involved with the feature.

Converting a Java Android Project to Kotlin

8 minutes

Google announced official support for the Kotlin Programming language at google io 2017. In this video we will learn how to migrate our existing Java Android projects to the Kotlin language by using the automated Kotlin Conversion tools. In the process, we will also learn Kotlin language fundamentals, including the null safety features of the language, safe call operator, and how statics are represented in Kotlin.

Dagger and Kotlin

8 minutes

Dagger is a dependency injection framework. In this screencast you will learn how to set up Dagger in a Kotlin Android app and some best practices.

Kotlin Nullability

5 minutes

In this screencast, we'll learn how to take a Java class converted to Kotlin using the conversion tool built in Android Studio, and apply some better null safety to the code learning about null safety along the way.

Kotlin and Android Lifecycles

6 minutes

What are some strategies for dealing with Kotlin and Android Lifecycles? In this screencast, cast you'll learn how Android Lifecycles appear to inhibit some core behaviors of Kotlin.

Related Screencasts

Explore other screencasts related to this topic.

SAM Type Conversion in Kotlin

7 minutes

In this screencast, we will do a recap on SAM Types, see how they work in Kotlin to support Java interoperability, and we'll also see some of the "gotchas" involved with the feature.

Kotlin Class Extensions

8 minutes

Class extensions are a powerful feature of Kotlin that allow you to add behavior to classes without extending them. In this video we will take a look at how to work with class extensions, some of the subtleties of how class extensions work with custom objects, and how to define your own class extensions to simplify your code.

Build Variants: Product Flavors

6 minutes

In this series, you will learn how to produce separate APKs from the same code base using product flavors. Each flavor will be branded differently, including a custom launcher icon, color scheme, and app name.

Build Variants: Source Sets

6 minutes

In this series, you will learn how to produce separate APKs from the same code base using product flavors. Each flavor will be branded differently, including a custom launcher icon, color scheme, and app name. In this screencast, part 2 of the series, you will learn how to share files across a main source set while providing custom versions of other files for the different app flavors.

Room Architecture

6 minutes

While Android SDK provides the APIs for using SQLite databases, they force developers to write a lot of boilerplate code. Room solves this problem by creating the glue code that saves objects to SQLite and reads them into memory. In addition, it performs some compile-time checks to ensure correctness of SQL queries.

LiveData

7 minutes

In the previous video you learned about Room, the object persistence architecture component but we had to use the AsyncTask to perform database access in a background thread. LiveData makes it easier to perform Room's database queries on Android, since it takes care of the activity lifecycle.