I’m not much sure what is that you’re trying to do. The Java code you have is very simple and doesn’t do much.
The usual way you translate that in Kotlin is just:
object LinphoneService: Service() {
val core = Core() // here I assume core has a no-arg constructor, as it seems from your Java snippet.
}
that’s it, no need to touch companion objects or write methods.
You can refer to your unique instance using its name LinphoneService
.