Related questions
Calling a java method from c++ in Android
I'm trying to get a simple Java method call from C++ while Java calls native method. Here's the Java code:
public class MainActivity extends Activity {
private static String LIB_NAME = "name";
static {
System.loadLibrary(LIB_NAME);
}
/** Called when the activity …
How to create an object with JNI?
I need to implement some functions into an Android application using NDK and thus JNI.
Here's the C code, with my concerns, that I wrote:
#include <jni.h>
#include <stdio.h>
jobject
Java_com_example_ndktest_…