benlau / androidnative.pri

Calling Android functions from Qt without using JNI
Apache License 2.0
102 stars 15 forks source link

Android Intents #13

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi it would be nice if AndroidNative could be used for Android Intents (share to Qt/QML APP). I only get the type "androidnative.Activity.onResume" and an empty object as message.

rmallah commented 6 years ago

Hi LubuWest , thanks for your interest in AndroidNative . We shall think about your suggestion . In the meantime its an open project so feel free to hack around :smiley:

regds mallah.

ghost commented 5 years ago

You might have a look at https://git.friendi.ca/lubuwest/Friendiqa/src/branch/master/source-android/androidnative.pri. I adapted androidnative.pri to handle text and image intents. The c++, java and qml code was adapted. Due to the QML startup process, the intent has to be saved until a setInitialized signal is emitted from QML. It is rather hacky, but it works!