Knowledgebase

Kotlin in the Google Ecosystem Print

  • googletechnology, google, guide, howto, solution, zillionkinghost, hosting, support
  • 0

The preferred Android language.

WHY IT MATTERS HERE

It is the preferred language for Android, and tooling and documentation assume it.

WHAT IT PROVIDES FOR THIS PLATFORM

Null safety, eliminating the commonest crash Coroutines, for asynchronous work Concise syntax, reducing boilerplate substantially Full interoperability with existing Java code

WHY INTEROPERABILITY MATTERS

Existing applications adopt it gradually, file by file, rather than by rewrite.

WHAT COROUTINES PROVIDE ON ANDROID

Asynchronous work written sequentially, cancelled automatically when a screen is destroyed.

WHY THAT CANCELLATION MATTERS

Work continuing after a screen is gone wastes battery and can crash.

WHAT TO SCOPE COROUTINES TO

The lifecycle of the component that started them.

WHAT KOTLIN MULTIPLATFORM PROVIDES

Sharing business logic across Android, iOS and other targets, with native interfaces on each.

WHAT IT DOES NOT SHARE

The interface, by design.

WHAT THAT DISTINGUISHES IT FROM

Frameworks rendering one interface everywhere.

WHAT TO WEIGH

Whether sharing logic justifies the additional build complexity.

WHAT TO LEARN ALONGSIDE

The platform's architecture guidance, which assumes Kotlin throughout.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot