title: Android NDK - How to function call another prebuilt library
body: <p>I had a pre-built .so file , my Android.mk is:</p>
  
  <pre><code>LOCAL_MODULE    := hello
  LOCAL_SRC_FILES := libfoo.so hello.c
  LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>Now, what i want is how to build hello.c , which calls a function ( getBoo - Located in libfoo.so ) file</p>
  
  <p>What i have so far is:</p>
  
  <pre><code>#include &lt;jni.h&gt;
  
  jstring Java_com_example_getBoo( JNIEnv*  env,jobject  this,jstring x )
  {
      return foo.getBoo(x);
  }
  </code></pre>
  
  <p>Which, obviously, isn't referenced to libfoo.so file , how do i fix this?</p>