Tag Archives: kotlin

Listening to EXOplayer events

Kotlin 2020 solution approach UPDATE

Events such as changes in state and playback errors are reported to registered Player.EventListener instances.

Player.EventListener has empty default methods, so you only need to implement the methods you’re interested in.

First your class, say your activity, has te conform to the Player.EventListener interface.

Continue reading Listening to EXOplayer events

kotlinx.serialization library, the chosen one

It seems clear today that kotlinx.serialization is the chosen one.

Among all the many libraries to parse JSON with Kotlin in Android. Say… Klaxon, Jackson, Gson, Json2kotlin, etc. kotlinx.serialization is presently attested champion.

There’s no doubt kotlinx.serialization is the future as it is part of Kotlin libraries now. Although it is still at the time of writing this post in incubator stage.

Continue reading kotlinx.serialization library, the chosen one

Kotlin vs Java. what should i pick for my new android project?

Unlike iOS, where Swift is overtaking Objective-C rapidly and the momentum is clear. In the Android world, presently, the language option is not that clear.

Yes, Kotlin is there, new, coming forward, garden-fresh, 21-century ready but it isn’t ultimately taking off, not as expected.

Kotlin was first introduced by JetBrains in 2011, which is the creator of IntelliJ IDEA, PyCharm, and many other top IDEs. It got its name from ‘Kotlin Island’ in St. Petersburg, Russia. Made to strike Java.

That said, the dominance of Java is still immense, the number of libraries, APIs, code generally speaking is humongous. Not to mention the readability of it, the many algorithms and things done or thought already in Java, yeah… Simple as it sounds, it’s hard to break a solid present for a “uncertain” bright future.

Continue reading Kotlin vs Java. what should i pick for my new android project?