FWIW, I also replaced:
  System.loadLibrary("jpeg");
with:
  System.load("/libs/armeabi/libjpeg.so");
since 
http://www.koushikdutta.com/2009/01/jni-in-android-and-foreword-of-why-jni.html
says:
"On Android, you must use System.load and provide a full path instead
of using System.loadLibrary. This is because loadLibrary only checks /
system/lib; it does not search LD_LIBRARY_PATH or your current working
directory. Unfortunately, applications can't write to the /system/lib
directory (without root)."

Now logcat shows:
DEBUG/dalvikvm  Trying to load lib /libs/armeabi/libjpeg.so 0x43598148
INFO/dalvikvm  Unable to dlopen(/libs/armeabi/libjpeg.so): Cannot find
library
WARN/dalvikvm(758): Exception Ljava/lang/UnsatisfiedLinkError; thrown
during L<my_namespace>/image/codec/JPEGImageDecoderImpl;.<clinit>

and later on, I see:
ERROR/AndroidRuntime(758): Caused by:
java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(758):     at
<my_namespace>.image.codec.JPEGCodec.createJPEGDecoder(JPEGCodec.java:
49)

I guess that's progress, but I am still left clueless as to why
dalvikvm cannot find the shared library.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to