How to place a location on Google Map

Here are few steps on how to add Google Map to your Kotlin/Android project, in this post, there are two things: Show marker on Google Map Get current location (Latitude & Longitude) Show marker on Google Map Step 1: Add dependencies in build.gradle: compile 'com.google.android.gms:play-services:11.6.2' Step 2: Set up Google Maps API Key in the
Read More »

Why Kotlin doesn’t have static

As you may observe while programming with Kotlin (1.1.60), there is no static members or methods. Instead you can use the companion object to work it around. [gist https://gist.github.com/arkilis/e1ff8d09c630c88193c45f63a8e074e2/] The reason behind this is: https://discuss.kotlinlang.org/t/what-is-the-advantage-of-companion-object-vs-static-keyword/4034 Scala also replaces class level declarations with a ‘Singleton’ object. The main advantage of this is that everything is an
Read More »

How to use RxAndroid with kotlin

This article is more for iOS developers who wants to put their hands on the Android Development, or for those who just want to enter the Android development world. There are no hard points in the article. In the tutorial, you are about to know: Install how to install dependencies Know how to use RXAndroid
Read More »

A comparison between Kotlin and Swift: Collections

Similar to Swift, collection in Kotlin includes: List Set Map 1. List Features of List: May have duplicate element May hold different data types All elements are unordered Similar to array in swift, list can be immutable and mutable. With immutable list, it can’t be added or removed. [gist https://gist.github.com/arkilis/1cdabbd71f64cdde50637179157375b8] In Swift, the mutable and
Read More »