Calling C from Java (Android)
I'm trying to call C code from Java. This has had me stumped all day.
So, I have Eclipse, the Andriod SDK and NDK all setup. I followed some of the examples with the NDK (for calling C code).
I've got my own project setup. It runs fine (without calling any C), and displays some text on screen etc.
I have a jni folder setup, with some C files, that I'm compiling and linking to a lib, all seems okay. I'm using the same mechanism as per the NDK examples, for calling C from Java. But no joy...
It compiles and runs, but at run time, can't seem to find the library or C function.
Thanks mostly to the excellent video tutorial here: http://marakana.com/s/andevcon_andro...271/index.html