views:

89

answers:

1

I'm trying to replicate this class called MediaMetadataRetriever in my own android project. You can see the class here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/java/android/media/MediaMetadataRetriever.java;h=681751b4d15115ffceb2c1d812b5d0f68b11a5ab;hb=HEAD

In line # 37 you can see: System.loadLibrary("media_jni");

How do I get that library. My logcat shows this:

Caused by: java.lang.UnsatisfiedLinkError: Library media_jni not found

A: 

This is a JNI class, which is created in C/C++ and included as a SO in your app. The class is loaded during runtime.

Look here http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=media/jni;h=47cc3922dab36985c9dec607f7dc5351974f05b2;hb=HEAD

Michael Pardo
@MichaelYeah I reached there but what should I do, import the related .cpp in my own project ? I had a look at the .cpp which is related to me it has a lot of dependencies. Looks complicated ?
Tee