I am trying to call into a Java class via C++/JNI on Android. More specifically, I am trying to call the constructor of this class which takes an Android Context as a parameter. I have no issue making the call successfully if my constructor has no params, but when I include the necessary Context as a parameter, I do not know what my JNI signature should look like and also doubt if that is even possible since I do not have access to that context object.
So, my question is, is it possible to call the constructor of a Java class which takes an Android Context as its only parameter ? If so, how ? If not, is there a workaround as I need the context to access certain Android API classes.