0PricingLogin
Kotlin Multiplatform Academy · Lesson

Call Shared Code from the Android App

Wire the shared function into a Jetpack screen.

Android Sees Shared Code

The Android app already depends on your shared module, so the greet function is just another Kotlin call from Android's point of view.

No Special Import

Because it is all Kotlin on the JVM, you simply import the shared package like any local class. There is no bridge or wrapper needed.

import com.example.shared.greet

All lessons in this course

  1. A Greeting Function in commonMain
  2. Call Shared Code from the Android App
  3. Call Shared Code from the iOS App
  4. Change Once, See It on Both Apps
← Back to Kotlin Multiplatform Academy