JNI meets C++
Welcome to JNIpp library which uses the power of C++ to give you better Java native interface.
JNIpp key features:
Start exploring JNIpp by looking at the examples.
android/samples/HelloJNIpp for Android-specific example that features native Activity, native custom draw View and natively handled Button.
JNIpp has the following dependencies:
Currently JNIpp supports Android platform only. It can be build on other platforms too (in fact it was developed on MacOS), however, no library projects are provided so you have to manually arrange and add source files to your app project.
On Android platform both JNIpp and dropins projects are installed as NDK modules (supported in NDK r5+). Steps to install:
NDK_ROOT/sourcesdirectory. Checkout commands:
LOCAL_STATIC_LIBRARIES := itoa-jnipp $(call import-module,itoa-jnipp/android)
APP_CPPFLAGS := -fexceptions APP_STL := gnustl_static
#include <JNIpp.h>in your header and source files.
Currently library has the following issues:
jni::GetEnv()->MonitorEnter(obj.GetJObject()).Wrap calls in RAII object!