Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use c/cpp library/functions in android

Tags:

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.

like image 265
Hiren Dabhi Avatar asked Feb 07 '11 10:02

Hiren Dabhi


People also ask

What C library does Android use?

Bionic is an implementation of the standard C library, developed by Google for its Android operating system.

Can kotlin call C++?

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.

How does JNI work on Android?

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.


1 Answers

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

  • Using NDK to Call C code from Android Apps
  • Android Beginners: NDK Setup Step by Step
  • Writing applications using the Android NDK
like image 97
Labeeb Panampullan Avatar answered Sep 24 '22 22:09

Labeeb Panampullan