How to get the Android context instance when calling JNI method?
问题 I have already read some relevant answers on stackoverflow,but seems no one has answered my question.I will get the android ID from native code,i.e. calling the method getAndroidIDfromNativeCode in C code,(so the JVM is inited in the native code by method create_vm),you know that when calling the method getContentResolver ,you must use a Android Context instance to call it,so how to get this Context instance ? static jstring native_code_getAndroidID(JNIEnv *env, jobject thiz) { jclass c