This project shows how to get started to read I2C temperature sensor and display the reading to OLED display using Android Things and Kotlin. Imagine that you can leverage your existing Android programming skill you acquired for many years, to develop app for Internet of Things. Android Things allows you to do that. Personally, I’m happy with Google direction to take on Internet of Things. As an IoT influencer and maker in Indonesia, I need to learn and share it to the community. And just about tme, on last Jul 22, I had the opportunity to share about Android Things development in a event called Google I/O Extended Jakarta - Indonesia. But developing for Android, and also Android Things, requires us to use Java (you can always C++ with NDK, but that’s not for mere-mortals :)). I have no issue with Java, I acquired Java skill since 18 years ago, working on my under-graduated project with it, and always be part of my life. I’ve also been using Java for developing Android apps since 4 years ago. But my love to it became less and less lately due to its nature and new languages came along. Luckily, there’s a new kid on the block, Kotlin. Actually, it’s been around since 2011, but made popular lately, especially after Google announced to officially use it for developing for Android. It kinda made me curious how good it is. So, to learn developing for Android Things, I think it will be a good opportunity to also learn Kotlin. So, this project is my first attempt to use Kotlin. It turns out, Kotlin is very easy to learn. I have a bonus already having experience with Swift programming language, you know, the one that you can use to develop app for Apple platforms. Turns out both languages share similar syntax. I don’t say Kotlin copies Swift or vice versa, I just happen to know Swift first. So the learning journey began. It’s very hard to learn new technologies without objective, so this project is my objective to learn Kotlin.”

Link