1

I know that I can attain the Activity object when I call into JNI using the jobject passed into the native method. But, lets assume I cannot use that method to do so.

How can I use the just the JavaVM and JNIEnv objects to attain the Activity instace ?

I know I can use env->FindClass("android/app/Activity") to get to the Activity class, but again, I want the actual Activity instance which initiated my native lib.

4

0 回答 0