How to load jni from sd card on android 2.1?

Posted by user263423 on Stack Overflow See other posts from Stack Overflow or by user263423
Published on 2010-05-13T11:40:50Z Indexed on 2010/05/13 11:44 UTC
Read the original article Hit count: 211

Filed under:
|
|

I want to load third-party jni library in runtime.
I've tried to load directly from sdcard. It expectedly failed.
I've tried to copy library from sdcard to /data/data/app/ and then
System.load(/data/data/libjni.so)
It works on HTC HERO, but fails on HTC Legend with Android 2.1. it fails during execution of native code and write to log uninformative stack trace Any other way to do it?

© Stack Overflow or respective owner

Related posts about android

Related posts about jni