How to load a library .so file into android application? [closed]
Can anyone tell me with an .so file given we need to calla jni
method in app? The .so file contains implementation methods in C
.
Thanks in advance.
use this code..
public class NativeLib {
static {
System.loadLibrary("ndk_demo");
}
/**
* Adds two integers, returning their sum
*/
public native int add( int v1, int v2 );
/**
* Returns Hello World string
*/
public native String hello();
}
for more info..http://marakana.com/forums/android/examples/49.html
精彩评论