In our previous article, Android NDK: The Interaction Between Kotlin and C/C++, we shared the results of our research into the Android NDK (Native Development Kit). In that article, you can find out how to set C/C++ and Kotlin interaction. We showed how Kotlin can invoke C/C++ code with any data types. We also converted String instances and passed Kotlin objects to native code, called functions, and threw JDK (Java Development Kit) exceptions. Now it’s time to move to the practical part working with the Android NDK. In this article, we’ll dive deeper into the topic of working with Kotlin in the Android NDK and will tell you how to call Kotlin from native code.


No comments to display.