I want to call a java method from C++ file in native code in Android. I know, we can achieve this from JNI but in that case the, I need to initiate the call from Java, which will not fit in my requirements.
I need to call a method written in Java from main() function in C++.
So is there any other approach to achieve this without JNI?
If I can achieve exact this thing using JNI, please let me know how?
Thanks in advance.
Thank You, Maulik