if
(!(jjvm->AttachCurrentThread(&jjvm, &env, NULL))) {BT_Debug(ANDROID_LOG_DEBUG, "Thread successfully attached.");
message = (*env)->NewByteArray(env, bufferlen);
BT_Debug(ANDROID_LOG_DEBUG,
"Byte-Array created."); // ... and fill it(*env)->SetByteArrayRegion(env, message, 0, bufferlen,(
const jbyte *) ((BYTE*) buffer));BT_Debug(ANDROID_LOG_DEBUG,
"Byte-Array filled.");BT_Debug(ANDROID_LOG_DEBUG, "Method-ID fetched.");
if (mid > 0) {
(*env)->CallStaticVoidMethod(env, jcls, mid, message);
BT_Debug(ANDROID_LOG_DEBUG, " 'sendMessage' called.");
}
BT_Debug(ANDROID_LOG_DEBUG, "Method-call 'storeMessage' settled.");
return bufferlen;
}
[...]
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
cls =(jclass)( env->NewGlobalRef(jcls) );
with jcls being the jclass - reference that is handled over with the first call from Java, and this class inherits everything that calls from Java to C/C++ and viceversa.
But that just does not solve the problem.
(Besides, nevermind about that mix of C and C++ - Code - I did not start this project, I just have to work with it... )
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
--
--