The qt documentation is poor in QAndroidJniObject object. Could you possibly tell me what the difference between callStaticObjectMethod
and callStaticMethod
is and when should I use them?
If you have any working example, It would be appreciated if address them in you answers. (like Q notifier)
Thank you
As I've mentioned in a comment, the callStaticMethod
is used with primitive types (which are listed here). This function returns the type you requested (ex. jint
) not QAndroidJniObject
.
And callStaticObjectMethod
is used with methods returning an object type (which are listed here). It returns the QAndroidJniObject
.
You can find example code in Qt unit test files on their git repository