Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Qt + Java (from Android)
Right now I have a pretty basic Qt application running from Android with no issues, but I would like to make some calls to Java intents from the C++ code. The ideas is to share objects or texts through social networks, access to the contact list and things like that making intent calls.
As far as I was looking around the Necessitas source code, it seems to make at least one of the intent calls I want to do.
I really appreciate any hint about the code I need to include in my project to access/call some (Android) Java intents. A "Hello World" example would be great!
This is exactly what I was looking for:
I hope this can be useful for somebody else! :)
Scorp1us last edited by
Is there anyway you can supply sample code?
I'd like to so the same thing, but don't know where to begin. I "get" JNI... but don't know how to assemble it into a useful assemblage of statements.
This is the source code of the project I was working on:
Last year, I compiled it using MInistro/Qt4 and it worked. I ported the small code to Qt5 but I haven't tried again, so I have no idea if it works now.
I hope this can gives you a hint. Good luck!