Using Qt in a generic Android library
Unsolved
Mobile and Embedded
-
Hello,
I'm developping an Android library privately using some Qt classes (mainly Network with QThread). The user of this library will work with Android Studio.
I'm currently abble to integrate and build the library to Android Studio project with CMake but the code is crashing when creating the QCoreApplication instance (I don't directly use it but it's mandatory for Qt). From what I understood the JNI setup is not done when loading Qt(Core?) ".so" because the "loadLibrary" is not called explicitly from the java code. Is it mandatory to do this call from Java code ? Or is there a different way to deal with that?
Since I'm new to Android I may have missed some basic stuff/setup.
Thanks