I am using Necessitas (QT on Android). Basically, using Andrid NDK, the android activity triggers the QT application (.so).
I am working on some GPS bindings. I think I get there, however I get JNI WARNING ( JNI Warnig expected return type "L" ) when I call the requestLocationUpdates (String, Long, Float, LocationListener) method.
Here are some of the code:
midGetSystemService = currEnv->GetMethodID(actClass,"getSystemService","(Ljava/lang/String;)Ljava/lang/Object;"); jSystemServiceObj = currEnv->CallObjectMethod(currAct,midGetSystemService,StringArg); midRequestLocationUpdates = currEnv->GetMethodID(locManClass,"requestLocationUpdates","(Ljava/lang/String;JFLandroid/location/LocationListener;)V"); midConstListener = currEnv->GetMethodID(listenerClass, "<init>", "()V"); jListenerObj = currEnv->NewObject(listenerClass, midConstListener); currEnv->CallObjectMethod(jSystemServiceObj,midRequestLocationUpdates,StringArg,(jlong)1000,(jfloat)10,jListenerObj); --->Here is the warning
Any idea why?
android android-ndk jni
QLands
source share