diff --git a/src/library.c b/src/library.c index ae7fe272d..795859b59 100644 --- a/src/library.c +++ b/src/library.c @@ -1,7 +1,6 @@ -#include -#include -#include +#include #include +#include bool GethServiceSignalEvent( const char *jsonEvent ); @@ -30,7 +29,8 @@ static bool JniAttach( JNIEnv **env ) if (status == JNI_EDETACHED) { // attach thread to JNI - (*gJavaVM)->AttachCurrentThread( gJavaVM, (void **)env, NULL ); + //(*gJavaVM)->AttachCurrentThread( gJavaVM, (void **)env, NULL ); // Oracle JNI API + (*gJavaVM)->AttachCurrentThread( gJavaVM, env, NULL ); // Android JNI API return false; } else if (status != JNI_OK)