This is outside the NDK, and well outside of the SDK.  Writing code like
this will break in arbitrary ways on arbitrary versions of the platform and
even individual devices.

Further questions should go to a group like android-porting or
android-platform, which deals with working with the internal implementation
of the platform.

Oh also...  media_jni is already loaded into every process.  You do other
tricks to get to hidden platform methods.  But that is not relevant to this
group.

On Mon, Nov 1, 2010 at 3:17 PM, cindy <[email protected]> wrote:

> Hi All,
>
> I want to use an un-public class AmrInputStream.java. The class load a
> jni interface media_jni.so
>
> static
> {
>        System.loadLibrary("media_jni");
> }
>
> I can found the library media_jni.so under /system/lib. So I directly
> put the class AmrInputStream to my application. It can compile,
> however, when I run my application, it crashes after I call
> AmrInputStream
>
>
> Does anyone knows how to fix the crach? or how to use the shared
> library on the phone.
>
> Thanks!
>
> Cindy
>
>
>
> I copy the source code to my project, i6t can
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to