Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.71 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. JNI Warnig expected return type 'L' calling LocationManager.requestLocationUpdates
  2. midGetSystemService = currEnv->GetMethodID(actClass,"getSystemService","(Ljava/lang/String;)Ljava/lang/Object;");
  3.  
  4. jSystemServiceObj = currEnv->CallObjectMethod(currAct,midGetSystemService,StringArg);
  5.  
  6. midRequestLocationUpdates = currEnv->GetMethodID(locManClass,"requestLocationUpdates","(Ljava/lang/String;JFLandroid/location/LocationListener;)V");
  7.  
  8.  
  9. midConstListener = currEnv->GetMethodID(listenerClass, "<init>", "()V");
  10. jListenerObj = currEnv->NewObject(listenerClass, midConstListener);
  11.  
  12.  
  13. currEnv->CallObjectMethod(jSystemServiceObj,midRequestLocationUpdates,StringArg,(jlong)1000,(jfloat)10,jListenerObj);  --->Here is the warning