Wrap the C API in JNI and call it from the app.

Signed-off-by: Shannen Saez <shannenlaptop@gmail.com>