+ Reply to Thread
Results 1 to 2 of 2

Thread: Calling C from Java (Android)

  1. #1
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default 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.

    Help!

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    Solved (*phew*)

    Thanks mostly to the excellent video tutorial here: http://marakana.com/s/andevcon_andro...271/index.html

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts