title: How to link to the libmedia.so system library in an Android NDK app using android.mk?
body: <p>I want to create a Player which uses Android system/lib/libmedia.so.</p>
  
  <p>Directly use JNI to play a video.</p>
  
  <p>In Android.mk, i add "-lmedia" for including the library, but i can't link this directly.</p>
  
  <p>This is my process.</p>
  
  <ol>
  <li><p>write a Cpp file which includes some header file in libmedia.so</p></li>
  <li><p>add "-lmedia" in Android.mk of LOCAL_LDLIBS</p>
  
  <p>such as..</p>
  
  <p>LOCAL_LDLIBS -lmedia -lstagefright</p></li>
  <li><p>use ndk-build to build .so</p></li>
  </ol>
  
  <p>error occured!!</p>
  
  <p>Does anybody have some answer to help???</p>