Kotlin

Kotlin is a functional language created by JetBrains that can be used to boost your Android productivity. Lambas, null safety, extension functions and a lot of breaking features make Android development simpler and easier. Start learning today!
Get the book!Don't miss new posts
Dialogs and alerts on Android using Anko and Kotlin (KAD 24)

Dialogs and alerts on Android using Anko and Kotlin (KAD 24)

Creating alerts and dialogs on Android is a relatively simple task thanks to the builder, but due to the verbosity of the language it usually becomes something quite illegible. In Kotlin, by the mere fact of the lambdas, it simplifies us a little to understand what is...

read more
How to mock final classes on Kotlin using Mockito 2 (KAD 23)

How to mock final classes on Kotlin using Mockito 2 (KAD 23)

One of the most common issues for Kotlin, as we talked about in a previous article, is that all classes and functions are closed by default. This means that if you want to mock a class (something that may be quite common in Java testing), you need to either open it...

read more
Unit tests on Android with Kotlin (KAD 22)

Unit tests on Android with Kotlin (KAD 22)

Of course, Kotlin also allows us to do unit tests in a very simple way, and very similar to what we're used in Java. There are some small complications when we use libraries like Mockito, but we'll see some tricks to make it easier. If all this passionate you as to...

read more
How to use Retrofit on android with Kotlin (KAD 21)

How to use Retrofit on android with Kotlin (KAD 21)

This is just one more example about how in Kotlin we can continue to use the same libraries we've always used in Java for Android. Retrofit is a library that greatly simplifies doing requests to an API, and in this case I'm going to teach you how to integrate it with...

read more
How to use Dagger 2 on Android with Kotlin (KAD 20)

How to use Dagger 2 on Android with Kotlin (KAD 20)

Virtually everyone who wants to create code on Android in a decoupled and easy-to-test way, resorts to Dagger sooner or later. Although there is something that works a bit differently when setting up Dagger in Kotlin, most of it is quite simple, and in a few steps I'm...

read more
Writing a RecyclerView Adapter in Kotlin (KAD 16)

Writing a RecyclerView Adapter in Kotlin (KAD 16)

An interesting way to see how Kotlin simplifies your life is by creating a RecyclerView Adapter. You'll see that the code can be organized in such a way that its reading is easier and it avoids redundant code. RecyclerView Adapter in Kotlin We'll create an Adapter...

read more
Kotlin for Android Developers

Kotlin for Android Developers

Start learning Kotlin today with this book by creating an Android App from ground up.