I want to use c/cpp functions/library in an Android application using jni. any suggestion / links / tutorials /example ?
my problem with pointer/structure return in c/cpp. how to use pointer/structure in android?
actually, I am trying to develop a remote desktop application through which I should be able to access my pc in android.
Bionic is an implementation of the standard C library, developed by Google for its Android operating system.
Kotlin can call C/C++ code with any type of data or object. We found out a lot of theoretical material and based on it created the sample project. We converted Java Strings inside the native code, passed Kotlin objects to the native code, called functions and threw Exceptions of Java.
It defines a way for the bytecode that Android compiles from managed code (written in the Java or Kotlin programming languages) to interact with native code (written in C/C++). JNI is vendor-neutral, has support for loading code from dynamic shared libraries, and while cumbersome at times is reasonably efficient.
The Android NDK is a toolset that lets you embed components that make use of native code in your Android applications. What is the NDK
Following are some link which help you to work in Android NDK
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With