When we use Android APIs( e.x. AppCompatActivity) from Kotlin code, does that mean they have developed Kotlin wrapper around existing Android SDK?
s
Sinan Kozak
01/22/2019, 6:42 AM
No, kotlin and java can work together. They can call each others code without wrapper.
r
rajkumar
01/22/2019, 7:15 AM
My question is how is that achieved?
I cant call Android APIs from say php code, but i can call in Kotlin
d
Davide Giuseppe Farella
01/22/2019, 7:18 AM
Can PHP compile Java code? ( ASAIF no )
z
zokipirlo
01/22/2019, 7:47 AM
Everything is compiled to same bytecode. You can call also Kotlin code from Java. If there would be any PHP to Java bytecode compiler, you could call PHP code then too.