- I have a C++ method I am trying to call from Java code
the signature of the method is:
Java:
public class FLVCamActivity extends Activity {
static {
System.loadLibrary("FLVCam");
System.out.println("Loaded FLVCam");
}
public native void RunFlvServer(int iCamId);C++:
extern "C" JNIEXPORT void JNICALL Java_com_sophin_flvcam_FlvCamActivity_RunFlvServer(JNIEnv* env, jobject javaThis, jint iCamId)
- during runtime, System.loadLibrary("FLVCam") SUCCEEDs, but, invoking 'RunFlvServer' failed with "No implementation found for native Lcom/sophin/flvcam/FLVCamActivity;.RunFlvServer (I)V"
- The SDK Version I am using is: AndroidSDK=15, NDK=r7b, minsdk@manifest = 15
- using 'nm -g' to list all the export entries exposed by my native lib it clear that the native method is properly exported: 0006c0a8 T Java_com_sophin_flvcam_FlvCamActivity_RunFlvServer.
Having the above in mind, why do I get this UnsatisfiedLink exception ?
Nadav at Sophin