How to call JAVA method that returns a String?
Solved
Mobile and Embedded
-
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'