app/src/main/jni/player_java_bindings.h
static JNIEnv * attach_current_thread (void)
{
    JNIEnv *env;
    JavaVMAttachArgs args;

    args.version = JNI_VERSION_1_6;
    args.name = NULL;
    args.group = NULL;

    if ((*java_vm)->AttachCurrentThread (java_vm, &env, &args) < 0)
        return NULL;

    return env;
}
// Register this thread with the VM
Register this thread with the VM
Register this thread with the VM
static JNIEnv * attach_current_thread (void)
{
    JNIEnv *env;
    JavaVMAttachArgs args;
    args.version = JNI_VERSION_1_6;
    args.name = NULL;
    args.group = NULL;
    if ((*java_vm)->AttachCurrentThread (java_vm, &env, &args) < 0)
        return NULL;
    return env;
}
static JNIEnv * attach_current_thread ( void ) { JNIEnv * env ; JavaVMAttachArgs args ; args . version = JNI_VERSION_1_6 ; args . name = NULL ; args . group = NULL ; if ( ( * java_vm ) -> AttachCurrentThread ( java_vm , & env , & args ) < 0 ) return NULL ; return env ; }
Register this thread with the VM
Register this thread with the VM