I am writing an android project which has Native layer helping the java layer, and am stuck at a place where when i try to do a System.loadLibrary, it is throwing error that
First find the location of the .so file. and then can try:
Following example assumes the location of shared library as: /data/data/my.package/lib/libmysharedlibrary.so
try {
//System.loadLibrary("mysharedlibrary");
System.load("/data/data/my.package/lib/libmysharedlibrary.so");
} catch (UnsatisfiedLinkError use) {
Log.e("JNI", "WARNING: Could not load libmysharedlibrary.so");
}