How to call intents from Qt app in Android?
I am developing a Qt app for Android and one of my requirements is to implement the classic "Share through social networks" feature. The object I need to share is a string containing an URL and that's it.
I have been searching around and there are several nice resources like these:
As far as I can see, there are several approaches to implement these, at least depending on the year of the article. Any way, I would like to read experiences or recommendations from people who already implemented these kind of features.
Right now is there a standard/official way about how to call intents from Qt? I appreciate any comment about it. Thank you! :)
One way is to subclass the
QtActivity, implement the functionality in Java and use JNI to trigger it.
Another way is to use JNI all the way with no .java files.
Finally I followed the instructions described here:
Using part of the code available here:
So, I could implement the "share" feature quickly and with no issues :)