Ostaski wrote:
> OK, I found libjpeg.so in DDMS File Explorer under /data/data/
> com.androidsecurity.wiia/lib/, so changed my loading to:
> System.load("/data/data/com.androidsecurity.wiia/lib/libjpeg.so");
> and now the dalvikvm can find it.
> 
> But now logcat shows:
> 
> WARN/dalvikvm(757): No implementation found for native Lcom/
> androidsecurity/wiia/image/codec/JPEGImageDecoderImpl;.initDecoder
> (Ljava/lang/Class;)
> ...
> ERROR/AndroidRuntime(757): Caused by: java.lang.UnsatisfiedLinkError:
> initDecoder
> ERROR/AndroidRuntime(757):     at
> com.androidsecurity.wiia.image.codec.JPEGImageDecoderImpl.initDecoder
> (Native Method)10-29 ERROR/AndroidRuntime(757):     at
> com.androidsecurity.wiia.image.codec.JPEGImageDecoderImpl.<init>
> (JPEGImageDecoderImpl.java:135)
> 
> where line 135 is the same
>   initDecoder( InputStreamClass );
> 
> So now dalvikvm can read the shared library, but I am still left with
> this UnsatisfiedLinkError ... apparently due to a lack of an
> implementation.
> 
> Can anyone tell me what "implementation" means in this context and how
> I might resolve this issue?

Questions about using the NDK should be asked over on the [android-ndk]
Google Group, which is dedicated to supporting the NDK:

http://groups.google.com/group/android-ndk

AFAIK, what you are trying to do better not work on a production device,
as you should not be able to access files in
/data/data/com.androidsecurity.wiia from your application (unless your
app is part of the firmware).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~
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