Adding Java code to Qt Android apps via Qt Creator
-
Greetings.
I have a Qt app running on Android that needs to manage Bluetooth connections. It appears that I'll need to write a custom Java Bluetooth management class that I can then use JNI to communicate with.
My question is: How do I add the Java code to my Qt Creator project so that it gets built into my app?
Thank you
-
Have you had any progress on this? I am attempting to do the same thing.
-
[quote author="scottwild" date="1379978283"]
My question is: How do I add the Java code to my Qt Creator project so that it gets built into my app? [/quote]i guess you should read the following:
http://qt-project.org/doc/qt-5/deployment-android.html#res-values-libs-xml
and
http://qt-project.org/doc/qt-5/deployment-android.html#qmake-variables
especially the part with ANDROID_PACKAGE_SOURCE_DIR