Skip to content Skip to sidebar Skip to footer

Is It Necessary To Call System.loadlibrary Explicitly For Accessing The Native Methods In A Nativeactivity Sub Class?

I have an Android app with an activity derived from NativeActivity like this: public class MyNativeActivity extends android.app.NativeActivity { public native void TellNativeS

Solution 1:

That's right. You must explicitly call system.loadLibrary() to have the native Java methods bound to exported functions of the .so file


Post a Comment for "Is It Necessary To Call System.loadlibrary Explicitly For Accessing The Native Methods In A Nativeactivity Sub Class?"