Qt 6.11 is out! See what's new in the release
blog
How to call JAVA method that returns a String?
-
I would like to call a JAVA method that is in my QtActivity that return a string.
I've tried these, but all gives me a compilation error:
jstring value = QtAndroid::androidActivity().callMethod<jstring>("getUser", "()Ljava/lang/String;");jstring value = QtAndroid::androidActivity().callMethod<jstring>("getUser");error: undefined reference to '_jstring* QAndroidJniObject::callMethod<_jstring*>(char const*, char const*, ...) const'