Is using C++ global variable in JNI on android acceptable?
If so, I’d like to know the life-cycle of it.
When a.cpp is connected to b.java and instance of b is created(is global variable initialized at this point?) and destroyed(is global variable destroyed at this point?).
In a nutshell, global variable in C++ side share it’s won life-cycle with connected Java instance?
Source: Windows Questions C++