Android\'s JNI tips page mentions this FAQ: Why didn\'t FindClass find my class? They mention multiple solutions and the last option there is this one:
<
Try attaching your native thread to the JVM first.
The pointer to jvm you can obtain first thing in JNI_OnLoad
JNI_OnLoad
env->GetJavaVM(&jvm);
Then from your native thread
JNIEnv *env; jvm->AttachCurrentThread((void **)&env, NULL);
Then use that env for FindClass
env
FindClass